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

but when I use this syntax, it only matches the first item in the array:
    set $/ARCSIGHT_WHITELIST = ["", ""];
    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
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 

Reply via email to