httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jørn <apache.u...@dahl-stamnes.net>
Subject Re: [users@httpd] Apache22 Logs rotation configuration
Date Fri, 18 Mar 2011 07:53:05 GMT
On Thursday 17 March 2011 19:33, Szász Csaba wrote:
> Hi
>
> You can use rotatelogs Apache's build in tool also :)
>
> CustomLog "|bin/rotatelogs /var/logs/logfile.%Y-%m-%d 86400" common
>
> http://httpd.apache.org/docs/2.0/programs/rotatelogs.html
>

This is how I has configured it to rotate every week:

CustomLog "|/usr/local/sbin/cronolog --period='1 week' --delay='1 
day' /var/log/httpd/access_log-%Y-%W" common

In Norway a new week start on Monday, that's what the --delay='1 day' is for.

-- 
Jørn Dahl-Stamnes
homepage: http://www.dahl-stamnes.net/dahls/

---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message