OK, So we’re on staging and everything runs perfectly.
ECR (fargate) <—> RDS <—> CloudWatch <—> ELB
For now, we’ve got 2 task count for our web service in Fargate.
Now imagine a scenario, where a container produces 5xx error. Since logging is already configured it’ll go to CloudWatch log group ‘/ecs/my-service’… so far so good!
But how do I know which container caused that error, since logs are aggregated by log streams.
How would you check out that, say, if 5xx happened on 1:31:20 PM then this is the log stream I should look into.
I’m pretty sure I’m missing something obvious here - any help will be greatly appreciated!