[rsyslog] Separating logs by host?
Scott Baker
bakers at web-ster.com
Fri Dec 21 18:55:36 CET 2007
Rainer Gerhards wrote:
> I forgot the quotes around the template string ;) That should work (not
> tested, though):
>
> $template dsl, "/var/log/cisco-dsl-%$NOW%.log"
> :FROMHOST, startswith, "10.3." -?dsl
That was it... now rsyslog starts without errors.
Howeever it's not logging to the file I have set to though, instead
it's going to /var/log/messages. I've verified with tcpdump that
it's sending from the correct IP address. I've tried both startswith
and isequal and neither seem to work.
I don't know how to troubleshoot any further? Is there some debug
mode or something that will give me more information about why it's
not logging the way I think it should?
--
Scott Baker - Canby Telcom
RHCE - System Administrator - 503.266.8253
More information about the rsyslog
mailing list