convert $msec to sec
Anoop Alias
anoopalias01 at gmail.com
Sun Apr 3 15:10:33 UTC 2016
Thanks Valentin. That works.
Can you explain
On Sun, Apr 3, 2016 at 6:10 PM, Валентин Бартенев <vbart at nginx.com> wrote:
> On Sunday 03 April 2016 11:31:08 Anoop Alias wrote:
> > I need to log the seconds since epoch (without the millisecond
> resolution)
> > in the access_log file
> >
> > is there is a way to convert the $msec to seconds or drop the exponential
> > part of the time . Probably using the map function?.
> >
>
> It's easy with the map directive:
>
> map $msec $sec {
> ~^(?P<_sec>.+)\. $_sec;
> }
>
>
> wbr, Valentin V. Bartenev
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
--
*Anoop P Alias*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160403/506c12c0/attachment.html>
More information about the nginx
mailing list