How to setup or change log rotate in Bamboo

Still need help?

The Atlassian Community is here for you.

Ask the community

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

Last modified on Dec 5, 2022

Was this helpful?

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