After pulling in the recent 2025-06-03 updates I get this import error on the logstash script:
vm-test-run-logwatch-module-test> "format" is not defined in %Logwatch::EXPORT_TAGS at /nix/store/zkr8b9vbmjf4jgzrv2fc0af3wpcwmj06-logwatch-unstable-2025-06-03/usr/share/logwatch/scripts/services/logstash line 17.
vm-test-run-logwatch-module-test> main::BEGIN() called at /nix/store/zkr8b9vbmjf4jgzrv2fc0af3wpcwmj06-logwatch-unstable-2025-06-03/usr/share/logwatch/scripts/services/logstash line 17
vm-test-run-logwatch-module-test> eval {...} called at /nix/store/zkr8b9vbmjf4jgzrv2fc0af3wpcwmj06-logwatch-unstable-2025-06-03/usr/share/logwatch/scripts/services/logstash line 17
vm-test-run-logwatch-module-test> Can't continue after import errors at /nix/store/zkr8b9vbmjf4jgzrv2fc0af3wpcwmj06-logwatch-unstable-2025-06-03/usr/share/logwatch/scripts/services/logstash line 17.
vm-test-run-logwatch-module-test> BEGIN failed--compilation aborted at /nix/store/zkr8b9vbmjf4jgzrv2fc0af3wpcwmj06-logwatch-unstable-2025-06-03/usr/share/logwatch/scripts/services/logstash line 17.
vm-test-run-logwatch-module-test>
The scripts also contains calls to FormatHashCounts which I dont' see anywhere in the repo. Does the library module need an update or something?
There is no :format defined in Logwatch.pm
There is only
=item I<:sort>
Imports C<countorder>, C<TotalCountOrder and C<sortip></sortip></countorder>
=item I<:ip>
Imports C<dolookup>, C<lookupip>, and C<sortip></sortip></lookupip></dolookup>
=item I<:dates>
Imports C<rangehelpdm getperiod="" timebuild="" timefilter=""></rangehelpdm>
=item I<:all>
Imports all importable symbols.
=cut
I would comment out the :format and try running it.
Related
Bugs:
#121As kind of expected, removing that line triggers
which is why I assumed that something has not been added/committed to logwatch.pm to make this work.
My apologies, I committed that script too soon. It should just be removed completely, which I have done in master.
Cheers, I will update.
Closed pending script re-submission.