httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: [users@httpd] montly log rotation
Date Fri, 21 Nov 2008 16:26:53 GMT
Tom Evans wrote:
> On Fri, 2008-11-21 at 13:30 +0100, Ebbe Hjorth wrote:
>> Hi,
>> I run apache 2.2 on a FreeBSD v7.0 machine, with a lot of virtual hosts,
>> with each their own access and error log.
>> I have been looking at rotatelogs so i dont have to restart/reload apache,
>> but the rotatelogs only rotate logs on a time interval, or logs size
>> count.
>> I would like to rotate all the logs on ex. the last nigth in a month, so i
>> get to logs for each month, for each virtual host, and then delete the old
>> logs when they are a year old.
>> I need help on this quest.
>> Thank you in advance.
>> Best regards, Ebbe, Denmark
> We use cronolog for this.
Under Linux, there is also a utility called "logrotate" (a separate 
program which will run from time to time under cron, and rotate a choice 
of logfiles, dictated by its configuration files).
We use it on all our Apache2 sites, works very nicely.

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