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

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
newmember
Posts: 43
Joined: Sat Sep 03, 2016 2:54 pm

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

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked