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