How to setup or change log rotate in Bamboo
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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.
*Except Fisheye and Crucible
Summary
This document will show the steps to configure log rotation and size in Bamboo
Environment
Bamboo 7, 8, and 9
Solution
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