How to setup or change log rotate in Bamboo

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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

Updated on February 25, 2025

Still need help?

The Atlassian Community is here for you.