Op Friday 02 October 2015 14:12:50 schreef Carlos E. R.:
Hi,
I notice a huge ammount of messages from gdm-x-session in /var/log/messages, and I'm trying to filter them out:
2015-10-02T14:04:09.303403+02:00 Eleanor-421 /usr/lib/gdm/gdm-x-session[1628]: The XKEYBOARD keymap compiler (xkbcomp) reports: 2015-10-02T14:04:09.304445+02:00 Eleanor-421 /usr/lib/gdm/gdm-x-session[1628]: > Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols 2015-10-02T14:04:09.304943+02:00 Eleanor-421 /usr/lib/gdm/gdm-x-session[1628]: > Ignoring extra symbols 2015-10-02T14:04:09.305909+02:00 Eleanor-421 /usr/lib/gdm/gdm-x-session[1628]: Errors from xkbcomp are not fatal to the X server 2015-10-02T14:04:09.340418+02:00 Eleanor-421 /usr/lib/gdm/gdm-x-session[1628]: The XKEYBOARD keymap compiler (xkbcomp) reports: 2015-10-02T14:04:09.341218+02:00 Eleanor-421 /usr/lib/gdm/gdm-x-session[1628]: > Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols 2015-10-02T14:04:09.341730+02:00 Eleanor-421 /usr/lib/gdm/gdm-x-session[1628]: > Ignoring extra symbols 2015-10-02T14:04:09.342606+02:00 Eleanor-421 /usr/lib/gdm/gdm-x-session[1628]: Errors from xkbcomp are not fatal to the X server
+++--------------------------------- So I write this section in /etc/rsyslog.conf and restart rsyslog:
if ($programname contains 'gdm-x-session') and ($syslogseverity <= 4 /* warning */ ) \ then { -/var/log/gdmlog.warn }
if ($programname contains 'gdm-x-session') \ then { -/var/log/gdmlog stop }
# # Warnings in one file # *.=warning;*.=err -/var/log/warn *.crit /var/log/warn
# # the rest in one file # *.*;mail.none;news.none -/var/log/messages ---------------------------------++-
The idea is that entries that come from "gdm-x-session" go to another file, not to "/var/log/warn" nor "/var/log/messages". But they don't, the rule is doing nothing.
:-?
Similar rules in 13.1 work.
-- Cheers, Carlos E. R.
Your filters should be entirely one line each. -- Gertjan Lettink, a.k.a. Knurpht Official openSUSE Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org