How to setup or change log rotate in Bamboo
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
要約
This document will show the steps to configure log rotation and size in Bamboo
環境
Bamboo 7, 8, and 9
ソリューション
Bamboo 9
Modify the <bamboo-install>/atlassian-bamboo/WEB-INF/classes/log4j2.properties
file and adjust the following properties to change the file size and number of logs to be rotated:
appender.realm.policies.size.size
appender.realm.strategy.max
Where realm can be either:
filelog
- accesslog
- emergency
- filescript
Restart Bamboo to apply the changes
Bamboo 7 and 8
Modify the <bamboo-install>/atlassian-bamboo/WEB-INF/classes/log4j.properties
file and adjust the following properties to change the file size and number of logs to be rotated:
log4j.appender.realm.MaxFileSize
log4j.appender.realm.MaxBackupIndex
Where realm can be either:
filelog
- accesslog
- emergency
- filescript
Restart Bamboo to apply the changes