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

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

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.log file on the Bamboo server.

[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 : 

  • First grep <bamboo-home>logs>atlassian-bamboo.log file with Ip address to get the list of EC2 instance, for example below

    grep "44.201.170.37" atlassian-bamboo.log

    You'll see the results as displayed below

    [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.

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

           



Last modified on Dec 14, 2022

Was this helpful?

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