Mailinglist Archive: opensuse (924 mails)

< Previous Next >
[opensuse] Intrusive wall from rsyslog
  • From: "Carlos E. R." <carlos.e.r@xxxxxxxxxxxx>
  • Date: Tue, 9 Oct 2012 22:38:46 +0200 (CEST)
  • Message-id: <alpine.LNX.2.00.1210092216480.6918@Telcontar.valinor>
Hash: SHA1

My rsyslog is configured to log messages from the router into a file like this:

#CER: router messages into a separate file and stop further processing.

# ^program-to-execute;template - doc: rsyslog_conf_actions.html
if ($source == 'router') and ($msg contains 'Received valid IP address
from server. Connection UP.') then \

if ($source == 'router') then \
& ~

so far so good. A bit later there is this default setting:

# Emergency messages to everyone logged on (wall)
*.emerg :omusrmsg:*

The problem is that emergency messages from the router are also printed on all terminals; and the router booting is considered and emergency. Like this:

Message from syslogd@BCM96345 at Oct 9 19:25:15 ...
started: BusyBox v0.60.4 (2005.10.07-11:27+0000)

Message from syslogd@BCM96345 at Oct 9 19:28:39 ...
started: BusyBox v0.60.4 (2005.10.07-11:27+0000)

How can I stop those emergency messages from the router being displayed everywhere?


I have seen this rule in the wiki indicated above:

# Everybody gets emergency messages
#*.emerg *
if \
$source == 'localhost' \
and \
$syslogseverity-text == 'emerg' \
then *

which looks interesting. I wonder how to integrate both. Perhaps this:

if ($source == 'localhost') and ($syslogseverity <= 0 /* emergency */)
then :omusrmsg:*

would that be correct?

- -- Cheers,
Carlos E. R.
Version: GnuPG v2.0.18 (GNU/Linux)

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups