Apache logging?
Brian McCann
bjmccann at gmail.com
Wed Jun 15 20:18:15 GMT 2005
On 6/15/05, Jeff Wirth <jeff.wirth at gmail.com> wrote:
> > Anyone here know how to get Apache to log in GMT when the system clock
> > is in local time? I can't imagine this being "impossible"...but I
>
> you didn't mention what version of apache...
>
> 1.3.* -> http://httpd.apache.org/docs/logs.html#accesslog
>
> [10/Oct/2000:13:55:36 -0700] (%t)
> The time that the server finished processing the request. The format is:
>
> [day/month/year:hour:minute:second zone]
> day = 2*digit
> month = 3*letter
> year = 4*digit
> hour = 2*digit
> minute = 2*digit
> second = 2*digit
> zone = (`+' | `-') 4*digit
>
> It is possible to have the time displayed in another format by
> specifying %{format}t in the log format string, where format is as in
> strftime(3) from the C standard library.
>
> -jeff
>
Thanks Jeff! Just as I got your message I found a work around that
worked for me. I set the TZ environment variable in the RC script to
me GMT and that did the trick.
Thanks!
--Brian
--
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_
Brian McCann
Systems & Network Administrator, K12USA
"I don't have to take this abuse from you -- I've got hundreds of
people waiting to abuse me."
-- Bill Murray, "Ghostbusters"
More information about the freebsd-questions
mailing list