[EMAIL PROTECTED] 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 http://cronolog.org/ will offer you a beter solutions to logs rotation.

-- 
Georgi Chorbadzhiyski
http://georgi.unixsol.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to