A bash script intended to make it easier to collect logs for troubleshooting Buildkite agents running on the Buildkite Elastic CI Stack. If you need assistance from Buildkite support, please run this script and send the logs to [email protected].
Clone the repo:
git clone github.com/jeremybumsted/bk-log-collector
Ensure you have the configured the AWS CLI
It is recommended you use a tool like aws-vault to manage your credentials and sessions.
Currently, the script requires and Autoscaling Group Name and an instance ID:
./bk-log-collector -s <ASG-Group-Name> -i <Instance-ID>
This will collect logs from the following locations in CloudWatch and store them in a zip file in /tmp/buildkite-logs-[date].zip
:
/buildkite/buildkite-agent
/buildkite/system
/buildkite/lifecycled
/buildkite/docker-daemon