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
rsyslog conf option if $programname == 'FILE_TAG' then ~
-
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
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
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