I need the following filter in rsyslog. My syntax is incorrect and it generates an error in the rsyslog logfile:
:programname, isequal, "program1" &
:msg, contains, "an expression" /dev/null
&~
Error is:
the last error occured in /etc/rsyslog.d/50-default.conf, line 18:":programname, isequal, "program1" &"
I'd appreciate if someone could suggest the correct syntax for this property filter, or alternatively the correct RainerScript syntax to do the same thing?