[rsyslog-notify] Forum Thread: Re: Simple if/then/else not working - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Thu Jan 21 22:16:06 CET 2016
User: JoiOwen
Forumlink: http://kb.monitorware.com/viewtopic.php?p=26292#p26292
Message:
----------
[quote="dlang":3pt9kp6l]The only time I've seen if statements not work is
when there is a syntax error
do rsyslogd -N2 and see if it reports any errors[/quote:3pt9kp6l]
Thanks for the response! Here's what I get with -N2:
[code:3pt9kp6l]root at monad2:/var/opt/syslog_by_ip/172.16.10.223#
rsyslogd -f /etc/rsyslog.conf -N2
rsyslogd: version 7.4.4, config validation run (level 2),
master config /etc/rsyslog.conf
rsyslogd: End of config validation run. Bye.
[/code:3pt9kp6l]
So there don't appear to be any syntax errors in it. If anything, I'd
expect to see issues with the content of the if expression, but that
results in the junk continuing to appear both on disk and in graylog. The
expression I have does stop the junk from hitting the disk, but it's still
going into the graylog. This is what is baffling me. I've checked the
appliance myself, and my syslog server is the only place it's configured to
send syslog to. So, I'm still stumped.
More information about the rsyslog-notify
mailing list