Welcome! Log In Create A New Profile

Advanced

Re: can i change time format in access log?

Ruslan Ermilov
March 26, 2013 01:22AM
On Mon, Mar 25, 2013 at 10:29:22PM -0400, appchemist wrote:
> I want to customize time format in access log, because of calculating time.
> There are two kind of time format in log_format.
> one is $time_local. (21/Mar/2013:18:47:32 +0900)
> another one is $time_iso8601. (2013-03-26T10:27:40+09:00)
> but, these are not matched by my demand.

There's a third one, $msec. It's time in seconds since UNIX Epoch,
with a milliseconds resolution, convenient if you need to further
process your logs and do time calculations.

> I want to log time likes "2013-03-25 16:35:35"....
>
> can i customize time format ?

Such a customization isn't possible.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

can i change time format in access log?

appchemist March 25, 2013 10:29PM

Re: can i change time format in access log?

Ruslan Ermilov March 26, 2013 01:22AM

Re: can i change time format in access log?

appchemist March 26, 2013 02:12AM

Re: can i change time format in access log?

appchemist March 26, 2013 02:22AM

Re: can i change time format in access log?

Ruslan Ermilov March 26, 2013 02:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 237
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready