Hi,
I'm just upgrading to Fedora 10, and rsyslog is now the default syslog daemon.
The current version is 3.21.9-2.fc10. I'm trying to migrate a syslog-ng
configuration, and so far I like the approach in rsyslog.
However, one of my filter expressions was giving me strange results, so I broke
it down into the following snippet whose behavior I cannot understand:
$template CronFormat,"%timereported% %HOSTNAME% %syslogtag% [cronrule %syslogseverity-text% %syslogseverity%]%msg:::sp-if-no-1st-sp%%msg%\n"
if ($syslogfacility-text == 'cron') and ($syslogseverity <= 4) \
then -/var/log/messages;CronFormat
This is the only action that uses the CronFormat template. I cannot understand why I am
seeing entries like these in /var/log/messages:
Feb 11 20:50:01 ti82 CROND[12005]: [cronrule info 6] (root) CMD (/usr/lib/sa/sa1 -d 1 1)
The template for the message shows us quite clearly that the syslogseverity value
is 6, and the filter expression is supposed to limit us to messages where the severity
is <= 4. So why does this message appear? Is this a bug in the filter expression
evaluator? Should I try building a different version of rsyslog? Or am I just confused
and not understanding how this stuff is supposed to work?
Thanks in advance for any help you can provide,
Andy


