[syslog-ng] Newbie Looking for Help

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Sun May 14 20:36:55 CEST 2006


On Sun, 14 May 2006 12:56:44 EDT, "Mark R. White" said:
> On nate campin site, he has this syntax:
> 
>   destination hosts { 
>    file("/var/log/HOSTS/$HOST/$YEAR/$MONTH/$DAY/$FACILITY$YEAR$MONTH$DAY"

> How does this identify which host is which?

Let's grab a random line from my syslog:

May 14 04:55:33 turing-police ntpd[7200]: synchronized to 198.82.1.202, stratum 2
                 ^^^^^^^^^^^^

So this would go with $HOST set to 'turing-police' and get logged in
/var/log/turing-police/2006/05/14/yaddayadda... 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 226 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20060514/09efea34/attachment.pgp


More information about the syslog-ng mailing list