Apache's rotatelogs rotating files at 19:00 instead of 0:00

Apache's rotatelogs rotating files at 19:00 instead of 0:00

Post by umask 0 » Wed, 10 Nov 1999 04:00:00



Hi,

My apologies if this question does not belong in this group. I
have Apache 1.3.4 running on SuSe Linux 6.0 with a 2.2.9 kernel.
In httpd.conf I use

        TransferLog "|/usr/sbin/rotatelogs /logs/access_log 86400"

After restarting the server at midnight I found out that the access_log
files are getting rotated at 19:00.  Here are a few samples of the rotated
file names:

-rw-r-----   1 root     root      8340462 Nov  6 18:59 access_log.0941846400
-rw-r-----   1 root     root      8324002 Nov  7 18:59 access_log.0941932800
-rw-r-----   1 root     root     18908574 Nov  8 18:59 access_log.0942019200
-rw-r-----   1 root     root     22040007 Nov  9 18:59 access_log.0942105600

I would really like to have the files rotated at midnight.  Is this possible?
Am I doing something wrong?

Any input will be greatly appreciated.  Please reply to the newsgroup or
directly to


Thanks in advance,
Sergey

 
 
 

Apache's rotatelogs rotating files at 19:00 instead of 0:00

Post by Bria » Thu, 11 Nov 1999 04:00:00



>Hi,

>My apologies if this question does not belong in this group. I
>have Apache 1.3.4 running on SuSe Linux 6.0 with a 2.2.9 kernel.
>In httpd.conf I use

>    TransferLog "|/usr/sbin/rotatelogs /logs/access_log 86400"

>After restarting the server at midnight I found out that the access_log
>files are getting rotated at 19:00.  Here are a few samples of the rotated
>file names:

>-rw-r-----   1 root     root      8340462 Nov  6 18:59 access_log.0941846400
>-rw-r-----   1 root     root      8324002 Nov  7 18:59 access_log.0941932800
>-rw-r-----   1 root     root     18908574 Nov  8 18:59 access_log.0942019200
>-rw-r-----   1 root     root     22040007 Nov  9 18:59 access_log.0942105600

>I would really like to have the files rotated at midnight.  Is this possible?
>Am I doing something wrong?

Looking at the date header of your post:
Quote:> Date: 9 Nov 1999 19:58:03 -0500

00:00 GMT-500 = 19:00 localtime

So make sure all of the programs and servers involved use GMT or localtime,
but not a mix of both.

 
 
 

Apache's rotatelogs rotating files at 19:00 instead of 0:00

Post by Andrei Ivan » Thu, 11 Nov 1999 04:00:00



> After restarting the server at midnight I found out that the access_log
> files are getting rotated at 19:00.  Here are a few samples of the rotated
> file names:

> -rw-r-----   1 root     root      8340462 Nov  6 18:59 access_log.0941846400

Your logs are rotated at midnight, UTC.

        $ ctime -u 941846400
        Sat Nov  6 00:00:00 1999

--
andrei

 
 
 

1. rotatelogs doesn't rotate

I have the following directive in httpd.conf:

TransferLog "|/usr/HTTPServer/bin/rotatelogs /usr/HTTPServer/logs/access_log
86400"

At the specified time, a new (archived) log file is created, but the old one
is not cleared out (and hence just continues to grow larger). Anybody know
why? Thanks for any info.

2. How to pass Request_URI to ErrorDocument?

3. can't connect ubuntu wifi Access Point: 00:00:00:00:00:00

4. Kickstart probs

5. setting rotatelogs to rotate at midnight

6. Tekram DC390

7. VFS: Unable to mount root fs on 19:00 - help!

8. Can't see new disks 4L Raid

9. Apache 2.0.39 and Rotatelogs

10. hardware address 00:00:00:00:00:00 !!!

11. Making the system reboot and login at 0:00

12. 3Com vortex has macaddress 00:00:00:00:00:00 (3com 905B-tx-nm)

13. SIS900 00:00:00:00:00:00 MAC solution