[syslog-ng] Log a directory
Valdis.Kletnieks at vt.edu
Valdis.Kletnieks at vt.edu
Mon Jul 16 17:06:06 CEST 2007
On Mon, 16 Jul 2007 09:38:08 +0200, =?ISO-8859-1?Q?Nicolas_de_Marqu=E9_-_Fromentin?= said:
> I must log files in a directory
>
> The rules are :
>
> - this files are created with a name that i must to redirect to
> syslog-ng.
> - i must redirect a file just after his creation
>
> Do you know a solution that can that can resolve this problem.
Are you unable to use the syslog-ng facility for constructing the pathname
of the logfile? It allows things like:
destination d_auth { file("/logs/$HOST/$YEAR/$MONTH/seclog-$YEAR-$MONTH$DAY"); };
and there's a *lot* of other variables you can include in there. Or am I
totally failing to understand the problem?
-------------- 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/20070716/58afbaa5/attachment.pgp
More information about the syslog-ng
mailing list