-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
4
-
1
-
Problem Definition
Currently, the only way to access the logs on an elastic agent is an SCP task, or to SSH into the elastic agent. These both depend on the agent instance to still be 'alive'.
From a support perspective we would like to retrieve the agent logs to determine why a build or deploy failed, but if the instance is already decommissioned, those logs are no longer available.
Suggested Solution
Add an option to the Elastic Agent configuration to sync elastic agent logs to an S3 bucket, so they can be retrieved later.
Workaround
A script can be added to the elastic agent customization to create a cron job which will use the amazon CLI to copy files to S3 on a schedule. This is not always very intuitive.
echo "*/15 * * * * aws s3 sync /home/bamboo/bamboo-elastic-agent.out <bucketURI>" >> /etc/crontab