variable suggestion - msec_start

Reinis Rozitis r at roze.lv
Tue Sep 22 21:00:08 UTC 2015


> 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 



More information about the nginx mailing list