Log file rotation script

Grzegorz Nosek grzegorz.nosek at gmail.com
Tue Jun 10 14:18:43 MSD 2008

On Tue, Jun 10, 2008 at 02:04:30PM +0400, Igor Sysoev wrote:
> > 3. some time passes to finish all the pending writes (maybe even 24h if
> > you want a single uncompressed log)
> No, with nginx you need only to wait second and so.

I know 24h is massive overkill but you might want to keep the
uncompressed logs a bit longer for e.g. generating stats or other log
analysis, so you'd be rotating current logs and gzipping/analysing
yesterday's logs in a single run.

Anyway, it was just an example.

Best regards,
 Grzegorz Nosek

More information about the nginx mailing list