How to identify a Bamboo Elastic agent details - using IP address from application logs

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

The purpose of this page is to help identify a Bamboo Elastic agent details when you have an IP address available. We'll try to use Bamboo logs + Bamboo DB to link the IP with the elastic agent.

Environment

This has been tested in Bamboo 8.2.4 but the solution will be applicable for any supported version.

Solution

When an elastic agent starts, Bamboo will print the following information in <bamboo-home>atlassian-bamboo.logfile on the Bamboo server.

1 [RemoteEC2InstanceImpl] Bamboo has detected that EC2 instance i-06dadf3ea9f3d1041 is now running at 44.201.170.37

With the above information you can get the EC2 instance id which you can query from the DB and get the elastic agent details.

Please follow the instruction below : 

  • Firstgrep<bamboo-home>logs>atlassian-bamboo.logfile with Ip address to get the list ofEC2 instance, for example below

    1 grep "44.201.170.37" atlassian-bamboo.log

    You'll see the results as displayed below

    1 [RemoteEC2InstanceImpl] Bamboo has detected that EC2 instance i-06dadf3ea9f3d1041 is now running at 44.201.170.37
  • From the above log extract the EC2 instance ID ,for example i-06dadf3ea9f3d1041 and pass in the below query to get the agent details.

    1 select * from queue where elastic_instance_id='i-06dadf3ea9f3d1041'

Updated on March 18, 2025

Still need help?

The Atlassian Community is here for you.