access log time format

Casey Scott casey at scottmail.org
Wed May 15 17:23:57 UTC 2013


"%Y-%m-%d %H:%M:%S" or 2013-05-14 15:40:21


----- Original Message -----
> That format doesn't fulfill my need though. It's close.. but not quite a
> match. I need this format:
> 
> 
> ----- Original Message -----
> > On 15 May 2013 10:13, Casey Scott <casey at scottmail.org> wrote:
> > > From what I can tell, iso_8601 is a specific format. Do you mean that I
> > > can
> > > manipulate it?
> > >
> > > Thanks,
> > > Casey
> > 
> > Yes, it's a specific format.
> > 
> > You seem to like ISO8601, without knowing about it being named so. :p
> > 
> > C.
> > 
> > > ----- Original Message -----
> > >> Yes, it is possible.
> > >>
> > >> See http://nginx.org/r/log_format, or, more specifically, $time_iso8601
> > >>
> > >> C.
> > >>
> > >> On 15 May 2013 10:04, Casey Scott <casey at scottmail.org> wrote:
> > >> > Is it possible to format the time Nginx uses in access.log to match
> > >> > this?
> > >> >
> > >> > "%Y-%m-%d %H:%M:%S" or 2013-05-14 15:40:21
> > >> >
> > >> > My goal is to have Nginx access logs match the time format of the rest
> > >> > of
> > >> > our
> > >> > environment so that monitoring tools/dashboards/etc. can adopt Nginx's
> > >> > access logs. From what I've read, it doesn't seem to be possible, but
> > >> > the
> > >> > posts I've seen are pretty old.
> > >> >
> > >> >
> > >> > Casey
> > 
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
> > 
> 



More information about the nginx mailing list