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.
Tested updated CFN script in several ECS clusters running AL2 instances. Tested enabling and disabling log collection to ensure that existing functionality remains unaffected
Requirements
Before committing the code, please verify the following:
If this commit includes changes to existing sample configurations, you acknowledge that you have confirmed this will not impact existing customer behavior.
If not necessary, consider creating a new sample configuration for this change.
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: