Fail2Ban Entries Not Listed in Logwatch
Systems affected: Fedora 37
Install fail2ban as needed. Information is being logged correctly to /var/log/fail2ban. Updates executed by fail2ban are not reported in logwatch.
Correction:
edit /usr/share/logwatch/scripts/services/fail2ban
Find the line:
my $Detail = $ENV{'LOGWATCH_DETAIL_LEVEL'} || 0;
change it to be:
my $Detail = $ENV{'LOGWATCH_DETAIL_LEVEL'} || 1;
Additional Notes:
Testing logwatch –
Get a report just on the screen just about the service fail2ban
/usr/sbin/logwatch --detail 1 --service fail2ban