Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
STDOUT Logfile size in Apache Tomcat
Is anyone more familiar with Tomcat? Is there a way to either limit the size of the log file or tell Apache to roll over the log and start a new one each day?Registered Linux user #270181
have a look at http://cronolog.org/
At least in apache, you can pipe logs to an external program.
(I am unsure about tomcat in that regard)
Log into cronolog and cronolog takes care about creating and naming new logfiles based on date and time.
No more need to restart apache.
It looks like this:
CustomLog "| /usr/sbin/cronolog -S /var/log/apache_access.log /var/log/apache_access.log-%Y%m%d" combined
And yes it is production ready.
I am using it on about 70 machines running apache/php for one website.
That also creates a few kbyte of access logs
Last edited by Irithori; 12-23-2009 at 06:59 PM.You must always face the curtain with a bow.