-
Support Request
-
Resolution: Support Request
-
Medium (View bug fix roadmap)
-
None
-
3.2
Hi,
JIRA has been running for a long period and it's great to experience such an uptime. One downside is that the catalina.out file grew to almost 300MB.
How can we configure JIRA's logging system to rotate catalina.out file daily, as is done with other files (e.g. atlassian-jira.2005-12-19.log)
Thanks,
Guillaume.
Workaround
Options to rotate catalina.out and detailed steps for using logrotate are documented at How to Rotate the Catalina Log File
- is related to
-
JRASERVER-28941 Ship JIRA with defaults that enable log rotation
- Closed
- relates to
-
JRACLOUD-8841 How to rotate Tomcat's catalina.out
-
- Closed
-
Since the log4j file in JIRA is configured to send lots of information to the console (which ends in stdout) the log file can get big, if there is a lot of information being logged.
I am not aware of any way of stopping Tomcat behaving this way. My recommendation, then, is to update the log4j file to stop logging to stdout. If you take a look at the atlassian-jira\WEB-INF\classes\log4j.properties file, you will see that Jira defines a filelog appender, that rotates every 20M. In my system, it is configured like:
You can configure Jira to use only the filelog appender, and not to use the console. To do that, you should update all logging levels. For example, for the com.atlassian package, you can update from:
only to log to the filelog, and not to stdout:
That will prevent the warnings in that package and its descendants to log into the stdout file. If you remove the 'console' form all packages, the file size should be significantly reduced. Once you have updated the log4j file, you will need to re-start Jira for the changes to take effect.
I hope this helps.