On Aug 13, 2013, at 5:09 PM, johnanza <[email protected]> wrote:

> 
> This works fine but is inefficient. I tried to rewrite as: (B)
> 
> if $syslogtag contains '/usr/local/bin/node' and $msg contains '[info]' then
> {
> if $msg contains 'foo' then ~
> else if $msg contains 'bar' then ~
> else if $msg contains 'baz' then ~
> }
> 

so what happens if the syslogtag contains '/usr/local/bin/node' and the $msg 
contains '[info]' but it does not contain foo, bar or baz?

That's right, it falls through your last else to…

> but this failed with " warning: selector line without actions will be
> discarded"

a selector line without an action.

-- Gary F.

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to