Mailinglist Archive: opensuse-factory (1324 mails)

< Previous Next >
[opensuse-factory] [Leap 42.1] Problem with filtering out some excesive syslog messages in rsyslog
  • From: "Carlos E. R." <carlos.e.r@xxxxxxxxxxxx>
  • Date: Fri, 2 Oct 2015 14:12:50 +0200 (CEST)
  • Message-id: <alpine.LSU.2.20.1510021405150.16747@Grypbagne.inyvabe>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlYOdMIACgkQtTMYHG2NR9X2bACfcSVS11Hy+3uAnEW6Hj0izDJc
VzYAn3kBMcxQ0cP++aNKLVjYRNBDhMid
=5g1n
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >