httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Georgi Chorbadzhiyski>
Subject Re: [users@httpd] Access log time/date range
Date Wed, 11 Oct 2006 16:27:30 GMT wrote:
> I've configured Apache 2.2.2 to create an access log in combination with
> log_rotate_module to switch it out.  I'm trying to get the access log files
> to contain only the entries for a particular day.  My current logging
> appears to group everything from 5pm the previous day to 5pm the next day.
> I'm guessing there's some sort of setting to adjust this, but have searched
> the Apache manual and Googled the log_rotate_module and haven't found a
> solution yet.  Here's my config and a sample of an access log entry:
> **************************************vhosts
> config****************************************
> IfModule log_config_module>
>     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> \"%{User-Agent}i\"" combined
>     CustomLog /cob/cob-access-log-%Y-%m-%d.log combined
> </IfModule>
> <IfModule log_rotate_module>
>     RotateLogs On
>     RotateLogsLocalTime On
>     RotateInterval 86400
> </IfModule>

Well, this instructs the module to rotate logs once per day. If you start the server
at 5 AM, everyday at 5 AM logs will be rotated.

May will offer you a beter solutions to logs rotation.

Georgi Chorbadzhiyski

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message