[syslog-ng] Syslog-ng log file overwrite

Justin Randall jrandall at comwave.net
Sat Mar 10 00:13:47 CET 2007


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 at ge.com] 
Sent: Friday, March 09, 2007 6:16 AM
To: Syslog-ng users' and developers' mailing list
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 at lists.balabit.hu
[mailto:syslog-ng-bounces at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20070309/42850ef9/attachment.html


More information about the syslog-ng mailing list