23.10.2013 12:55, Rainer Gerhards:
This code will execute correctly if msg contains either "tag1",
"trag2" or none of them, but will trigger an runtime-error if msg
contains both "tag1" and "tag2" (as it violates the constraint).
This restriction does not seem useful to me.
Besides that you think it is not useful, do you think it hurts some use
case? Could you accept this restriction?
Yes, it does not change anything. You can always reformulate it as:
if $msg contains "tag1" then
set $.glob = "1";
if $msg contains "tag2" then
set $.glob = "2";
set $/glob = $.glob;
But I still wonder what it's worth.
--
Pavel Levshin
_______________________________________________
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.