note that in rsyslog, it defaults to async writes so the - is not needed ahead of the filename (and there are various config paramters to set if you want more safety at the expense of speed)

David Lang

On Wed, 11 Jan 2012, Francois Marier wrote:

On 2012-01-09 at 18:03:29, [email protected] wrote:
:fromhost-ip, startswith, "192.168.1.1" /var/log/gargoyle-router.log

and finally, this will match 192.168.1.100 as well as 192.168.1.1 so
you probably want equals instead of startswith.

Thanks to your suggestion, I now have a config that works:

 $ModLoad imudp
 $UDPServerRun 514
 :fromhost-ip, isequal, "192.168.1.1" -/var/log/gargoyle-router.log
 & ~

(just before the line that outputs to /var/log/syslog)

Cheers,
Francois

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/

Reply via email to