Product:
Search Type:

Webalizer doesn't parse log files after the change in daylight saving time.

Article ID: 1766 
Last Review: Mar,28 2007
APPLIES TO:
  • Parallels Automation (PEM)
  • Parallels Automation 2.6

SYMPTOMS

Customers don't have actual webstatistics twice a year.

CAUSE

Webalizer writes current time shift from GMT to files webalizer.current. When daylight saving starts/ends time shift changes and webalizer doesn't parse log files properly.

RESOLUTION

You should replace old GMT shift with the new one in webalizer.current config file. In order to do it for all current host webspaces execute:

sed -i '2s/old_gmt_shift$/new_gmt_shift/' /usr/local/pem/vhosts/*/webspace/webstat/webalizer.current

 

For example, old shift from GMT was 1 hour, new one is 2 hours, so command should be:

sed -i '2s/1$/2/' /usr/local/pem/vhosts/*/webspace/webstat/webalizer.current

Keywords: webalizer

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields