[logcheck] - correct ignore-filenames - ignore new logins - ignore dbus-messages

Matthias Runge mrunge at fedoraproject.org
Tue Nov 22 11:07:31 UTC 2011


commit 18d18c92441a74fce975dcb119e950b463740e3b
Author: Matthias Runge <mrunge at matthias-runge.de>
Date:   Tue Nov 22 12:06:44 2011 +0100

    - correct ignore-filenames
    - ignore new logins
    - ignore dbus-messages

 logcheck.spec         |   13 ++++++++++---
 logchk-dbus-ignore    |    7 +++++++
 logchk-systemd-ignore |    1 +
 3 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/logcheck.spec b/logcheck.spec
index 7e766a2..cdd6ce5 100644
--- a/logcheck.spec
+++ b/logcheck.spec
@@ -1,6 +1,6 @@
 Name:           logcheck 
 Version:        1.3.14
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Analyzes log files and sends noticeable events as email 
 
 License:        GPLv2
@@ -9,6 +9,7 @@ URL:            http://logcheck.org/
 Source0:        http://ftp.de.debian.org/debian/pool/main/l/%{name}/%{name}_%{version}.tar.gz
 Source1:        logchk-systemd-ignore
 Source2:        logchk-NetworkManager-ignore			
+Source3:        logchk-dbus-ignore
 Patch0:         logcheck-dhclient.patch
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -70,8 +71,9 @@ rm -f %{buildroot}%{_mandir}/man8/manpage.*
 %{__install} -pm 644 etc/tmpfiles.d-logcheck %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
 
 # install fedora tweaked rule files
-%{__install} -pm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/ignore.d.server/
-%{__install} -pm 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/ignore.d.server/
+%{__install} -pm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/ignore.d.server/systemd
+%{__install} -pm 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/ignore.d.server/NetworkManager
+%{__install} -pm 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}/ignore.d.server/dbus
 %clean
 rm -rf %{buildroot}
 
@@ -111,6 +113,11 @@ exit 0
 
 
 %changelog
+* Sun Nov 20 2011 Matthias Runge <mrunge at matthias-runge.de> 1.3.14-4
+- correct names of ignore-files
+- ignore new logins
+- ignore dbus-messages
+
 * Fri Nov 18 2011 Matthias Runge <mrunge at matthias-runge.de> 1.3.14-3
 - ignore NetworkManager standard messages
 - ignore systemd-login standard messages
diff --git a/logchk-dbus-ignore b/logchk-dbus-ignore
new file mode 100644
index 0000000..ba77ab6
--- /dev/null
+++ b/logchk-dbus-ignore
@@ -0,0 +1,7 @@
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dbus\[[0-9]+\]: \[system\] Activating service name='[._[:alnum:]-]+' \(using servicehelper\)$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dbus-daemon\[[0-9]+\]: dbus\[[0-9]+\]: \[system\] Activating service name='[._[:alnum:]-]+' \(using servicehelper\)$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dbus\[[0-9]+\]: \[system\] Successfully activated service '[._[:alnum:]-]+'$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dbus-daemon\[[0-9]+\]: dbus\[[0-9]+\]: \[system\] Successfully activated service '[._[:alnum:]-]+'$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dbus-daemon\[[0-9]+\]: \*\* Message: D-Bus service launched with name: [._[:alnum:]-]+$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dbus-daemon\[[0-9]+\]: \*\* Message: entering main loop$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dbus-daemon\[[0-9]+\]: \*\* Message: No devices in use, exit$
diff --git a/logchk-systemd-ignore b/logchk-systemd-ignore
index f5d1ae8..7e8e6c0 100644
--- a/logchk-systemd-ignore
+++ b/logchk-systemd-ignore
@@ -1,4 +1,5 @@
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ systemd-logind\[[0-9]+\]: Removed session [[:digit:]]+\.$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ systemd-logind\[[0-9]+\]: New session [[:digit:]]+ of user [._[:alnum:]-]+\.$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ systemd-logind\[[0-9]+\]: User [._[:alnum:]-]+ logged out\.$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ systemd-logind\[[0-9]+\]: New user [._[:alnum:]-]+ logged in\.$
 


More information about the scm-commits mailing list