Results 1 to 3 of 3
At my work we have several production applications running on top of Apache Tomcat 6. The programs have a lot of auditing information (for billing purposes) and they can get ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-23-2009 #1
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
TechieMoe's Tech Rants
- 12-23-2009 #2
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 05:59 PM.You must always face the curtain with a bow.
- 12-23-2009 #3