Forum: NGINX nginx log time stamps customization

Posted by kalpesh.patel@glgroup.com (Guest)
on 2012-12-24 16:28
(Received via mailing list)
Hello NGINX Dev team:

Hope you can help answer a simple question (I've gone through 
documentations
and experimented with it and the answer seems no but hoping to get
confimration from "the" authority on it).

I need to customize the time stamp for logging access logs in certain 
ways.
Looking at the log module, I see that the nginx offers only two
pre-configured formats, namely the $time_local and $time_iso8601 
formats. I
was looking to avoid post-processing of the written logs by changing the
log_format directive at the nginx level which would have met out needs.

This would have also provided "built-in" log-rotation that we were 
looking
to employ (given that file is opened and immediately closed) as well.

If this is the case of not RTFM (namely
http://wiki.nginx.org/HttpLogModule#log_format) then I apologies and
hopefully I can be pointed to the propriate place(s).

Thanks and have a Happy Holidays!

Kalpesh...

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,234391,234391#msg-234391
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.