How to change log4j logging on EC2 agents

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

Problem

To debug EC2 agent issues we sometimes need to extra debug classes to its normal log or change the level of logging to some existing classes

Resolution

Perform any needed change in the log4j of the Bamboo server and those changes will be replicated in the EC2 agent

  1. Edit the file 
    1. For Bamboo versions prior 9: <Bamboo_Install>/atlassian-bamboo/WEB-INF/classes/log4j.properties adding the needed classes or changing the log level from the existing ones

    2. For Bamboo version 9 and above: <Bamboo_Install>/atlassian-bamboo/WEB-INF/classes/log4j2.properties adding the needed classes or changing the log level from the existing ones

  2. Restart the server
  3. Restart the EC2 agents


(warning) The EC2 log4j.properties copy can be found at <EC2_Agent_Home>/classpath/bamboo-additional-config.jar 


Last modified on Aug 19, 2022

Was this helpful?

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