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

-- 
Francois Marier                         identi.ca/fmarier
http://fmarier.org                    twitter.com/fmarier
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/

Reply via email to