Change the rotation file size for Jira server logs

Still need help?

The Atlassian Community is here for you.

Ask the community

Purpose

The atlassian-jira.log as others logs inside the jira-home directory, automatically rotates by size after 20mb as default. Increasing its size could be necessary in some scenarios to retain more information.

Solution

You can check the file which is located at JIRA-INSTALL/atlassian-jira/WEB-INF/classes/log4j.properties and it should look something like this:

log4j.appender.xxxxxxxxlog=com.atlassian.jira.logging.JiraHomeAppender
log4j.appender.xxxxxxxxlog.File=atlassian-jira.log
log4j.appender.xxxxxxxxlog.MaxFileSize=20480KB
log4j.appender.xxxxxxxxlog.MaxBackupIndex=5
log4j.appender.xxxxxxxxlog.layout=com.atlassian.logging.log4j.NewLineIndentingFilteringPatternLayout
log4j.appender.xxxxxxxxlog.layout.ConversionPattern=%d %t %p %X{jira.username} %X{jira.request.id} %X{jira.request.assession.id} %X{jira.request.ipaddr} %X{jira.request.url} [%q{2}] %m%n

To increase or decrease the size that Jira will rotate the log file, change the log4j.appender.xxxxxxxxlog.MaxFileSize=20480KB.
Remember to restart Jira to the changes take effect.

(warning) As every log file will have its own section, pay attention while changing the parameters.

Last modified on Sep 25, 2019

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.