Welcome! Log In Create A New Profile

Advanced

Re: variable suggestion - msec_start

Reinis Rozitis
September 22, 2015 05:02PM
> can i ask for a variable, $msec_start to provide a timestamp on which
> nginx
was started?
> this way we could do some logging like $msec_start$connection to get a
unique value, even after reload...


Depending on the needs you could use $msec (current time with milliseconds
resolution ) and/or $pid (worker process id - obviously can repeat at some
point).

rr

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

variable suggestion - msec_start

schnix September 22, 2015 10:57AM

Re: variable suggestion - msec_start

Reinis Rozitis September 22, 2015 05:02PM

Re: variable suggestion - msec_start

schnix September 23, 2015 04:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 72
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready