From e84323af8a71c6505ae0ed22f8e908e2ce97811b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20=C5=A0imovec?= Date: Tue, 27 Jun 2023 16:20:24 +0200 Subject: [PATCH] ignore normal "Server ready" startup message from fail2ban --- ignore-server-ready.patch | 13 +++++++++++++ logwatch.spec | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 ignore-server-ready.patch diff --git a/ignore-server-ready.patch b/ignore-server-ready.patch new file mode 100644 index 0000000..02085a8 --- /dev/null +++ b/ignore-server-ready.patch @@ -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 ) { + diff --git a/logwatch.spec b/logwatch.spec index 4f231e8..3846421 100644 --- a/logwatch.spec +++ b/logwatch.spec @@ -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 - 7.4.3-16 +- ignore normal "Server ready" startup message from fail2ban +- Resolves: rhbz#2043944 + * Tue Jun 27 2023 Pavel Šimovec - 7.4.3-15 - ignore a couple of normal auditd startup messages - Resolves: rhbz#2043942