Jasperserver log rotation

Hello,

I believe there are three sets of log files for Jasperserver 5.6

1. The tomcat log files in <installation-root>/apache-tomcat/logs/

2. The jasperserver logs in <installation-root>/apache-tomcat/webapps/jasperserver/WEB-INF/logs/

3. PostgreSQL log file in <installation-root>/postgresql/postgresql.log

Question: Has anyone set up logrotation to rotate these logs? I am assuming these log files will eventually get big and unweildy. Is there anything in Jasperserver to manage the log rotation. Basically, I want to keep 4 weeks worth of log and delete the rest, without having to resort to cron jobs and such. I am using Ubuntu and it has a good logrotate utility, but I am not sure how to use it with jasperserver. Any thoughts on how you've managed your log files would be helpful.

 

max_max_mir's picture
Joined: Jul 21 2010 - 9:03am
Last seen: 4 years 4 months ago

1 Answer:

I'm keeping Postgresql log files sepate but have modified log4j.properties so tomcat and jasperReports log files are all written to tomcat\logs. I also changed to using daily rotation so users will be able to quickly send me the log file of the specific date when something happened.

 

hozawa's picture
190821
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 years 3 months ago
Feedback