Rotatelogs and british summertime.

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

 



Hi there,
 
I have a slight issue with rotatelogs and british summer and wintertime.
 
When in BST my logfile entries are being written with the correct timestamp (localised) but the logfile rotation filename does not match the current time,
 
e.g i set my logfile name as /opt/app/apache2.2.17/logs/steve_access_log.%Y-%m-%d-%H_%M_%S with a rotation time of 86400 seconds.
 
I then end up with a logfile called steve_error_log.2011-04-06-00_00_00 , but the first entry is written at 01:00 and not 00:00 as i would expect.
 
I can work around this by setting my CustomLog setting as follows:
CustomLog "|/opt/app/apache2.2.17/bin/rotatelogs /opt/app/apache2.2.17/logs/steve_access_log.%Y-%m-%d-%H_%M_%S 86400 +60" ORU_extended
 
I then end up with the first logfile entry being written at 00:00 and the last at 23:59.
 
My concern is though that when we switch back to GMT in October that i will then have to remove the "+60" from the configuration.
 
Does anyone in the UK have a better workaround that deals with the switch between GMT->BST and BST->GMT better without having to resort to configuration file changes?
 
Cheers in advance
 
Steve
 

[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