Centralising logs with Cloudwatch - tooltwist/documentation GitHub Wiki
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"
}
},