-
Notifications
You must be signed in to change notification settings - Fork 8
Centralising logs with Cloudwatch
Philip Callender edited this page Oct 25, 2016
·
1 revision
With ECS, multiple Docker containers are running for each task, and it becomes difficult to determine where problems occur. The solution is to aggregate all the logs into a single location - Amazon Cloudwatch.
See http://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html.
Creating the log:
aws logs create-log-group --log-group-name dc-practise --region ap-southeast-1
CloudWatch console at https://console.aws.amazon.com/cloudwatch/.
In the task definition:
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "dc-practise",
"awslogs-region": "ap-southeast-1",
"awslogs-stream-prefix": "drinkcircle-curia"
}
},