tags:

views:

223

answers:

1

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?

+2  A: 

By default rotatable is true for Access Log, so you will be having a new file created every 24 hours.

Tomcat itself does not do any housekeeping on the old files, the general principle on a Unix system is to have a cron job set up on the system to archive older files into a back up directory and/or delete them.

ktaylorjohn
Thank you for the answer. You confirmed my assumption, that files need to be deleted by a cronjob (or a visual basic script on windows).
Andreas
If you're happy with the answer, would you accept it with the tick mark? Thanks.
ktaylorjohn