Using cronolog with nginx

Igor Sysoev is at
Thu Feb 22 20:44:26 MSK 2007

On Wed, Feb 21, 2007 at 12:37:37PM -1000, Andy Triboletti wrote:

> I'd like to rotate my nginx logs using cronolog and wanted to know if anyone
> else knows how to do it.  In the nginx config, I'm trying to pipe the
> results to cronolog but not having any success.  Is there a way to do this
> in nginx?  Here is what I tried:
> access_log "| /usr/local/sbin/cronolog /web/logs/%Y/%m/%d/access.log";

No, nginx does not support logging to a pipe.
nginx instantly reopens logs by USR1 signal.

Igor Sysoev

More information about the nginx mailing list