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

最終更新日: 2022 年 12 月 5 日

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

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