Skip to content

Commit

Permalink
Merge pull request #2411 from buildkite/elastic-stack-docs
Browse files Browse the repository at this point in the history
Add log-collector script section to Elastic Stack docs
  • Loading branch information
mbelton-buildkite authored Nov 13, 2023
2 parents 85226cf + ab25fc8 commit e911996
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pages/agent/v3/elastic_ci_aws/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ On Windows instances only:

There are a couple of other log groups that the Elastic CI Stack for AWS sends logs to, but their use cases are pretty specific. For a full accounting of what logs are sent to CloudWatch, see the config for [Linux](https://github.com/buildkite/elastic-ci-stack-for-aws/blob/-/packer/linux/conf/cloudwatch-agent/config.json) and [Windows](https://github.com/buildkite/elastic-ci-stack-for-aws/blob/-/packer/windows/conf/cloudwatch-agent/amazon-cloudwatch-agent.json).

## Collecting logs via script

An alternative method to collect the logs is to use the [`log-collector`](https://github.com/buildkite/elastic-ci-stack-for-aws/blob/main/utils/log-collector) script in the [`utils`](https://github.com/buildkite/elastic-ci-stack-for-aws/tree/main/utils) folder of the [Elastic CI Stack for AWS repository](https://github.com/buildkite/elastic-ci-stack-for-aws).

The script collects CloudWatch Logs for the Instance, Lambda function, and AutoScaling activity, then packages them in a zip archive that you can email to Support for help at [[email protected]](mailto:[email protected]).

## Accessing Elastic CI Stack for AWS instances directly

Sometimes, looking at the logs isn't enough to figure out what's going on in your instances. In these cases, it can be useful to access the shell on the instance directly:
Expand Down

0 comments on commit e911996

Please sign in to comment.