Re: Apache22 Logs rotation configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux