I have logs being forwarded to my syslog server, I have built a filter in rsyslog.conf file that should put the logs into a separate logfile if it contains "username". Unfortunately it doesn't seems to be working, the filter I use is:
if ($fromhost-ip == '192.x.x.x.' and $msg contains 'Username' and $msg contains 'test') then /var/log/new.log;RFC3164fmt
Thanks for you help.