Maxim Dounin
December 11, 2009 09:48AM
Hello!

On Fri, Dec 11, 2009 at 08:39:33AM -0500, keepwalking wrote:

> Hello.
>
> It currently have this custom log format:
> log_format js '$remote_addr [$time_local] $request $country $geoip_region';
>
> It is possible to get the unix timestamp ? Ex: 1260538968 ?

$msec will give you unix timestamp with milliseconds, i.e.
something like "1260538968.123".

Maxim Dounin

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

Nginx log timestamp

keepwalking December 11, 2009 08:39AM

Re: Nginx log timestamp

Maxim Dounin December 11, 2009 09:48AM

Re: Nginx log timestamp

keepwalking December 11, 2009 11:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 277
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