You can have
logrotate entries like the following:
# rotate some
Logs
/logdirectory/messages
{
weekly
rotate 12
compress
postrotate
/usr/bin/pkill -HUP syslog
endscript
}
What this does
is simply rotate the log, and then send HUP to Syslog-NG to stop it from writing
to the current inode which points to the recently rotated logfile. This
specific configuration will rotate weekly, keeping 12 compressed revisions
using GZIP.
I hope this
helps,
Justin.
From: Padmanabhan,
Rajeesh (GE Healthcare) [mailto:Rajeesh.Padmanabhan@ge.com]
Sent: Friday, March 09, 2007 6:16
AM
To:
Subject: 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:
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