can i use the statement both "$msg contains" and "$fromhost-ip startswith" in rsyslog config?
when i use the follow for rsyslog config, it work!
if $msg contains 'src_port=6699' then -?DynFileA
& ~
if $fromhost-ip startswith '10.10.10.1' then -?DynFileB
& ~
but when i combine both of them, it was fail!
if $fromhost-ip startswith '10.10.10.1' and $msg !contains 'src_port=6699' then -?DynFileA
& ~
i search many article from internet, especially rsyslog office document,but didn't find any useful suggestion!
can any one tell me how to do this?