I'm trying to discard redundant messages with the following rule
- Code: Select all
if $programname == 'CRON' and $syslogfacility-text == 'auth' and $syslogseverity-text == 'info' and $msg == '(pam_unix) session opened for user root by (uid=0)' then ~
but this doesn't seem to work.
While, for example, this one does:
- Code: Select all
if $programname == 'CRON' and $syslogfacility-text == 'auth' and $syslogseverity-text == 'info' and $msg contains 'session opened for user root by' then ~
I trie escaping the parenthesis with \ but it didn't help.
Any suggestions?


