[syslog-ng]Log Rotation
Dan Edwards
syslog-ng@lists.balabit.hu
Tue, 10 Jun 2003 02:44:03 -0400
Add a destination using macros. Here is an example destination.
destination d_example { file("/var/logs/$HOST/$HOST.$YEAR-$MONTH-$DAY.txt"); };
That would put the data in a file based on the name of the device sending it and the current date. Example ("/var/logs/device1/device1.2003-06-07.txt"). It doesn't per say rotate the log but it will give you new logs based off day/month etc..
---------- Original Message ----------------------------------
From: "Jim Gifford" <maillist@jg555.com>
Reply-To: syslog-ng@lists.balabit.hu
Date: Mon, 9 Jun 2003 19:22:58 -0700
>I tried searching google for this information.
>
>How can I setup syslog-ng to rotate logs by date??
>