3 messages in ru.sysoev.nginxRe: Using cronolog with nginx
FromSent OnAttachments
Andy TribolettiFeb 21, 2007 2:37 pm 
RoxisFeb 21, 2007 2:43 pm 
Igor SysoevFeb 22, 2007 9:44 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Using cronolog with nginxActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Feb 22, 2007 9:44:03 am
List:ru.sysoev.nginx

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.