ignore normal "Server ready" startup message from fail2ban

This commit is contained in:
Pavel Šimovec 2023-06-27 16:20:24 +02:00
parent 8b245ee53c
commit e84323af8a
2 changed files with 20 additions and 1 deletions

13
ignore-server-ready.patch Normal file
View File

@ -0,0 +1,13 @@
--- a/scripts/services/fail2ban
+++ b/scripts/services/fail2ban
@@ -91,7 +91,8 @@
($ThisLine =~ /INFO\s+(Stopping all jails|Exiting Fail2ban)/) or
($ThisLine =~ /INFO\s+Initiated '.*' backend/) or
($ThisLine =~ /INFO\s+(Added logfile = .*|Set maxRetry = \d+|Set findtime = \d+|Set banTime = \d+)/) or
- ($ThisLine =~ /Unable to find a corresponding IP address for .*: \[Errno -2\] Name or service not known/)
+ ($ThisLine =~ /Unable to find a corresponding IP address for .*: \[Errno -2\] Name or service not known/) or
+ ($ThisLine =~ /: Server ready$/)
)
{
if ( $Debug >= 6 ) {

View File

@ -1,7 +1,7 @@
Summary: A log file analysis program
Name: logwatch
Version: 7.4.3
Release: 15%{?dist}
Release: 16%{?dist}
License: MIT
Group: Applications/System
URL: http://www.logwatch.org/
@ -28,6 +28,7 @@ Patch9: logwatch-pam-unix.patch
Patch10: logwatch-failed-login.patch
Patch11: systemd-noise-filter.patch
Patch12: auditd-startup-messages.patch
Patch13: ignore-server-ready.patch
BuildRequires: perl-generators
Requires: grep mailx
@ -58,6 +59,7 @@ of the package on many systems.
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
rm -f scripts/services/*.orig
%build
@ -157,6 +159,10 @@ echo "# Configuration overrides for specific logfiles/services may be placed her
%{_mandir}/man*/*
%changelog
* Tue Jun 27 2023 Pavel Šimovec <psimovec@redhat.com> - 7.4.3-16
- ignore normal "Server ready" startup message from fail2ban
- Resolves: rhbz#2043944
* Tue Jun 27 2023 Pavel Šimovec <psimovec@redhat.com> - 7.4.3-15
- ignore a couple of normal auditd startup messages
- Resolves: rhbz#2043942