Re: Log Time != Server Time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Fri, Jun 21, 2013 at 12:38 PM, Pete Houston <ph1@xxxxxxxxxxxxxxxx> wrote:
Yes, it's pretty simple, assuming that you mean that apache should run
as UTC (GMT) and the other, non-apache processes on the machine should
be unaffected:

        $ export TZ=GMT
        $ apachectl stop
        $ apachectl start

Make sure to include this env var in the apache boot script too.

OTOH, if you mean you want apache to run as UTC-4 but log as UTC, then
that's a different matter altogether (and I'd recommend against it
anyway).

Yes, actually, this ^^ is what I am trying to do.
 

HTH,

Pete

On Fri, Jun 21, 2013 at 12:04:05PM -0400, Bradley Andersen wrote:
> I need requests to be logged using a different time zone than the apache
> server's time zone.  For example, if my timezone happens to be UTC-4, I
> would like the logs to report requests as UTC, while keeping the apache
> server time zone set as UTC-4.
>
> Is this possible natively (to apache)?

--
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux