Hello,

I am currently running a web application:

Tomcat: 8.0.22
JDK: 1.8.0_05
Server: Amazon Linux AMI

At the moment, I am simply using the default logging.
catalina.out
catalina.[date].log
localhost.[date].log
host-manager.[date].log
localhost_access_log.[date].log
manager.[date].log

These log files build up in my {catalina.base}/logs directory.

At the moment it's not a problem but eventually I would like to clear these
log files and store them somewhere (maybe send them to my email).

Does anyone have any solutions for what to do with these log files?
I looked into rotating them with logrotate but I read in a few places that
tomcat automatically rotates its log files and that I shouldn't override
this.

I will eventually probably implement more thorough logging for my
application.
But for the meantime, what should I do so that I don't have a ton of log
files in my logs directory?
Any way to automatically delete and email all log files with dates older
than one month?
Should I implement logrotate on catalina.out since this does not get dated?

Thank you

Reply via email to