Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-19711

Sync Elastic Agent Logs to an S3 Bucket

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Elastic Bamboo, Logs
    • None
    • 4
    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      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
      

              Unassigned Unassigned
              rwatson@atlassian.com Robert W (Inactive)
              Votes:
              13 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: