Debian Bug #960888 - logwatch: version 7.5.0-1 is installing 7.4.3
Some output is in random order
Logwatch.pm ignores caller's my $DoLookup variable
Debian logrotate conf files use delaycompress, creating .1 archives
Bjorn, Thank you for the comments and the improved patch!! My replies: 1a) $SelfSignedH is not defined in the current repository or your patch 1b) The other condition is outside the date range, so @SelfSignedH should not be added to 2) Yes--that is a clever and superior solution! The patch does not work correctly because $SelfSignedH is not defined. You can test things by copying the "Warning" and "Suggested action" log lines above to /var/log/exim4/mainlog . Attached is a diff to your patch, which...
Bjorn, diff -u output is attached Yes, my logwatch.pl is version 7.5.5-1 (Debian 11 "bullseye") "use strict;" would be a good thing Thank you! Dan
Bjorn, Joerg, et al, And, as always, if anyone else can help, chime in. Gladly! Let's look at the following command: sudo logwatch --service=exim --range=2021-11-28 logwatch.pl lines 777 and 787 are: 777: $CheckTime = $time_t[0] - 86400*2; 787: if ($CheckTime <= ($FileStat[9])) { so it reads Archives from Nov 26 onwards. Below are the relevant log file lines. We only care about lines that match $SearchDate (2021-11-28). In this case, there are none, so $SelfSigned is undef, which is correct. That...
Joerg, Bjorn, et al, This is the code in exim's src/tls.c that writes the log messages: log_write(0, LOG_MAIN, "Warning: No server certificate defined; will use a selfsigned one.\n" " Suggested action: either install a certificate or change tls_advertise_hosts option"); Unfortunately, the "Suggested action" line has no timestamp. There are two problems with logwatch.patch: Even if there are no Warnings for the date range, $Detail >= $LvlMsgs will still print "Suggested action" messages from outside...