When I use this syntax, arrays work just fine:
    if ($fromhost-ip == ["127.0.0.1", "1.1.1.1"]) then {

but when I use this syntax, it only matches the first item in the array:
    set $/ARCSIGHT_WHITELIST = ["127.0.0.1", "1.1.1.1"];
    if ($fromhost-ip == $ARCSIGHT_WHITELIST) then {

There are no syntax errors when I check rsyslogd -N1. I am using v8.21.0 on
CentOS 7.

I believe both of these should have the same result. If arrays can't be
used in this way, they should generate an error.

Is there a workaround?
_______________________________________________
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