[syslog-ng] syslog-ng log rotation

Mike mike at jeke.fdns.net
Fri Jul 27 20:26:30 CEST 2007


you could have a log destination that looks something like this:

destination d_oddly_short_interval {
         file(
 		"/your_path/$YEAR-$MONTH-$DAY-$HOUR-$MINUTE.txt"
         );
};

so syslog-ng would just keep creating new files every minute. it would be 
up to you to bundle up your 5 minute  sections.

Mike

On Fri, 27 Jul 2007, Root Administrator wrote:

> Hi All
>
> PLz GIVE ME A CLUE !!!
>
> [Platform]
> Solaris 9 for sparc
> syslog-ng 2.0.4
>
> [Plan]
> Syslog-ng writes logs to local file.
> Log rotation function is required to be implemented as in its configuration
> rather than using other UNIX standard logrotation.
> Rotation is planned to be executed in one minute interval.
> And, we gather five of this one minute rotated file and archive them in one
> file.
> This is the brief plan.
>
> Could anyone please give me a clue to do this !!!
>
> I appreciate the detailed clue !!!
>


More information about the syslog-ng mailing list