httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "howard chen" <howac...@gmail.com>
Subject Re: [users@httpd] Apache Log File 2GB
Date Tue, 03 Jun 2008 16:20:08 GMT
On Tue, Jun 3, 2008 at 11:28 PM, Stusynski, Dan <dstusynski@ptc.com> wrote:
> To rotate the logs you can use Apaches piped rotatelogs:
>
> http://httpd.apache.org/docs/2.2/programs/rotatelogs.html
>
> Put something like the following in your httpd.conf (or whereever your logging is define),
'CustomLog "| <APACHE_HOME>/bin/rotatelogs -l <APACHE_HOME>/logs/access_log%Y-%m-%d_%H_%M_%S
2048M" custom'
>
> That should rotate at 2 gigs.

Personally I prefer "logrotate", which can be scheduled as cron and do
the rotation for you.

>> yum install logrotate (If you are using RH/FC)


Howard.

---------------------------------------------------------------------
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