Change the rotation file size for Jira server logs

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

目的

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.

ソリューション

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.

最終更新日 2019 年 9 月 25 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.