Skip to content

Instantly share code, notes, and snippets.

@bushong1
Created February 1, 2019 17:23
Show Gist options
  • Save bushong1/c56c8ffece4132b3b31db54ea5e03ac2 to your computer and use it in GitHub Desktop.
Save bushong1/c56c8ffece4132b3b31db54ea5e03ac2 to your computer and use it in GitHub Desktop.
Cloudwatch Logs Agent ecs-agent logs
[general]
state_file = /var/awslogs/state/agent-state
[/var/log/ecs/ecs-agent.log]
file = /var/log/ecs/ecs-agent.log.*
log_group_name = MyCoolEnvironment-ecs
log_stream_name = ecs-agent/`curl http://169.254.169.254/latest/meta-data/instance-id`
datetime_format = %Y-%m-%dT%H:%M:%SZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment