RE: [syslog-ng] Syslog-ng log file overwrite
Basically what i am trying to configure is log rotation of Syslog-ng files.. _____ From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Padmanabhan, Rajeesh (GE Healthcare) Sent: Friday, March 09, 2007 3:52 PM To: Syslog-ng users' and developers' mailing list Subject: [syslog-ng] Syslog-ng log file overwrite Hi Bazsi, Do syslog-ng overwrites log file by default? If yes, what is the process/strategy done by syslog-ng to overwrite the file? Thanks, Rajeesh
On Fri, 09 Mar 2007 16:46:18 +0530, "Padmanabhan, Rajeesh (GE Healthcare)" said:
Basically what i am trying to configure is log rotation of Syslog-ng files.
You can always cheat, like this: file("/logs/$HOST/$YEAR/$MONTH/messages-$YEAR-$MONTH$DAY"); Voila! instant auto-magic rotation at midnight. :)
participants (2)
-
Padmanabhan, Rajeesh (GE Healthcare)
-
Valdis.Kletnieks@vt.edu