aws-samples / amazon-cloudwatch-container-insights

CloudWatch Agent Dockerfile and K8s YAML templates for CloudWatch Container Insights.
MIT No Attribution
162 stars 106 forks source link

Enable capability for ECS agent log and system log collection #161

Closed jenademoodley closed 4 months ago

jenademoodley commented 5 months ago

Description of the issue

Describe the problem or feature in addition to a link to the issues.

ECS agent and/or Docker logs are needed to troubleshoot issues with the agent or daemon. However at times the instances are terminated and the logs are not available, hence impossible to triage the issue.

Description of changes

How does this change address the problem? This change modifies the CW agent configuration by allowing the agent to collect the ECS agent and system logs by enabling the EnableLogCollection parameter.

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Tests

Describe what tests you have done.

Requirements

Before committing the code, please verify the following: