You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andre Hübner <an...@gmx.de> on 2008/06/03 17:09:59 UTC

[users@httpd] Apache Log File 2GB

Hi List,

i have access_logs >2GB and Apache 2.2.8 want restart in correct way. Is 
there a hint to let LogFiles grow larger or is the only way to rotate at 
reaching 2GB?

Thank you
Andre 


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


Re: [users@httpd] Apache Log File 2GB

Posted by howard chen <ho...@gmail.com>.
On Tue, Jun 3, 2008 at 11:28 PM, Stusynski, Dan <ds...@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


RE: [users@httpd] Apache Log File 2GB

Posted by "Stusynski, Dan" <ds...@ptc.com>.
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. 

Dan Stusynski 

-----Original Message-----
From: Andre Hübner [mailto:andre.huebner@gmx.de] 
Sent: Tuesday, June 03, 2008 10:10 AM
To: users@httpd.apache.org
Subject: [users@httpd] Apache Log File 2GB

Hi List,

i have access_logs >2GB and Apache 2.2.8 want restart in correct way. Is there a hint to let LogFiles grow larger or is the only way to rotate at reaching 2GB?

Thank you
Andre 


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


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


Re: [users@httpd] Apache Log File 2GB

Posted by Victor Trac <vi...@gmail.com>.
On Tue, Jun 3, 2008 at 5:09 PM, Andre Hübner <an...@gmx.de> wrote:

> Hi List,
>
> i have access_logs >2GB and Apache 2.2.8 want restart in correct way. Is
> there a hint to let LogFiles grow larger or is the only way to rotate at
> reaching 2GB?
>
> Thank you
> Andre
>
>
What is the advantage of having larger log files?  Why not rotate daily?
You don't want to rotate once it reaches 2GB.  You should be doing it way
before then.  Large log files are harder to search through and make sense
of.

--Victor

-- 
http://www.victortrac.com