RE: Apache Log File 2GB

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

 



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@xxxxxx] 
Sent: Tuesday, June 03, 2008 10:10 AM
To: users@xxxxxxxxxxxxxxxx
Subject:  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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


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