Reputation: 677
I have problems to get logs from all my ECS instances, that are started by a task in my cluster. I followed this : https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html
I get logs for one instance, but if I try to run 2, with auto-scaling group, I don't see the logs of the second instance.
I also tried to configure the cloudwatch agent in my docker image, but I don't see any improvements.
Am I missing something?
Upvotes: 2
Views: 1761
Reputation: 31
Using driver with awslogs is the best way to manage your logs when a container is created by ecs. Every time a new task is created by ECs, a new log-stram is generated with that task's name and is made available in the cloudwatch log group.
Upvotes: 2