[syslog-ng] Syslog-ng log file overwrite

Padmanabhan, Rajeesh (GE Healthcare) Rajeesh.Padmanabhan at ge.com
Fri Mar 9 20:01:56 CET 2007


Hi Valdis,

Thanks for the help. Could you please explain below questons?

1. Will the below format overwrites existing log file?

 
file("/logs/$HOST/$YEAR/$MONTH/messages-$YEAR-$MONTH$DAY");

2. Is there a way to roate log file based on the size?

Idea is I don't want my log partition gets filled & alerts due to lacks
of space :)

Please help.

-Rajeesh
 

-----Original Message-----
From: syslog-ng-bounces at lists.balabit.hu
[mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of
Valdis.Kletnieks at vt.edu
Sent: Saturday, March 10, 2007 12:22 AM
To: Syslog-ng users' and developers' mailing list
Subject: Re: [syslog-ng] Syslog-ng log file overwrite

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. :)




More information about the syslog-ng mailing list