Page 1 of 1

rsyslog conf option if $programname == 'FILE_TAG' then ~

Posted: Thu Sep 12, 2019 11:15 pm
by newmember
nagios LS offers a manual template for adding config options for file monitoring to rsyslog.conf file.

The last line of the sample is:
if $programname == 'FILE_TAG' then ~

When I start rsyslog I get the following event in the message logs:

Sep 12 22:00:56 aumtech02 rsyslogd: warning: ~ action is deprecated, consider using the 'stop' statement instead [v8.1908.0 try https://www.rsyslog.com/e/2307 ]

Is there a recommendation for using "~" or "stop"

Thanks

Re: rsyslog conf option if $programname == 'FILE_TAG' then

Posted: Fri Sep 13, 2019 10:18 am
by scottwilkerson
What OS are you running on this server?

It appears that this was a change in rsyslog v7 but the ~ will continue to operate through all of v7

https://www.rsyslog.com/doc/v8-stable/c ... deprecated