logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_log_rotate can't cycle at midnight
Author
Ellis



Joined: 09 Aug 2008
Posts: 2
Location: France

PostPosted: Sat 09 Aug '08 15:19    Post subject: mod_log_rotate can't cycle at midnight Reply with quote

Hello,

I'm using mod_log_rotate 1.00a-w32 from Apache Lounge with Apache 2.2.8 from Apache site, Windows 2003 Server web edition.

It does work, but logcycling always happen at 2:00 AM (00:00 UTC, I'm in France, GMT+2)

I tried various settings (see below) but the result is always the same (cycle at 2:00 AM) :

<IfModule log_config_module>
<IfModule log_rotate_module>
RotateLogs On
RotateLogsLocalTime On
RotateInterval 86400
CustomLog "c:/logs/addict/addict%Y%m%d.log" urchinutm
</IfModule>
</IfModule>

I tried

RotateLogsLocalTime Off
RotateInterval 86400 120

(should have 2 hours offset before midnight)

RotateLogsLocalTime On
RotateInterval 86400 60

But the cycling still happen at 2:00 AM.

I read somewhere a post from someone with the exact same problem (can't find it now) but he had no answer...
Back to top
Brian White



Joined: 24 Aug 2008
Posts: 21

PostPosted: Mon 25 Aug '08 0:22    Post subject: Reply with quote

I have:

RotateLogs On
RotateLogsLocalTime On

without the RotateInterval directive and my rotation happens at midnight.

Also, check your server timezone. This problem also happens if the clock time is right but the timezone the system thinks it is in is incorrect.
Back to top
Ellis



Joined: 09 Aug 2008
Posts: 2
Location: France

PostPosted: Wed 27 Aug '08 14:34    Post subject: Reply with quote

Thanks for your post Brian.

I tried the same config as yours, without the RotateLogsLocalTime directive, but the result is still the same, log rotation happened at 2:00.

I checked my time zone in windows and it is correct, set to Paris.
Back to top


Reply to topic   Topic: mod_log_rotate can't cycle at midnight View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules