logwatch i fail2ban

System Debian 12 bookworm, program logwatch nie wyświetał informacji z programu fail2ban. Aby włączyć wyświetlanie informacji wykonałem następujące czynności:

1. Skopiowałem plik

/usr/share/logwatch/scripts/services/fail2ban

do katalogu

/etc/logwatch/scripts/services

2. W plik zmieniłem linię 31

my $Detail = $ENV{'LOGWATCH_DETAIL_LEVEL'} || 0;

na

my $Detail = $ENV{'LOGWATCH_DETAIL_LEVEL'} || 1;

Jeszcze test

logwatch --output stdout --range yesterday --service fail2ban

i wynik

 ################### Logwatch 7.7 (07/22/22) #################### 
        Processing Initiated: Sun Jul 13 20:38:15 2025
        Date Range Processed: yesterday
                              ( 2025-Jul-12 )
                              Period is day.
        Detail Level of Output: 0
        Type of Output/Format: stdout / text
        Logfiles for Host: serwer1
 ################################################################## 
 
 --------------------- fail2ban-messages Begin ------------------------ 

 Banned services with Fail2Ban:                        Bans:Unbans  ReBans:Flush
    apache-auth:                                       [  1:1  ]      [  0:0  ]
    mirek-drop:                                        [968:956]      [  0:0  ]
 
 ---------------------- fail2ban-messages End ------------------------- 

 
 ###################### Logwatch End #########################