How to delete Tomcat Access Log after n days?

Posted by Andreas on Stack Overflow See other posts from Stack Overflow or by Andreas
Published on 2010-05-05T09:40:14Z Indexed on 2010/05/05 11:38 UTC
Read the original article Hit count: 186

Filed under:
|

I only would like to keep the Access Logs of the last n days created by Tomcat Access Log Valve. http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Access%20Log%20Valve

But there seems to be no configuration-Attribute to define how long to keep the log-files? I guess this is because "Access Log Valve" only creates log files and doesn't delete them, is that correct?

© Stack Overflow or respective owner

Related posts about tomcat

Related posts about log