Runbook for new AWS infrastructure - alphagov/notifications-manuals GitHub Wiki
AWS
Query CloudWatch ECS logs in Logit
- Log into Logit and click the open to open a saved search
- Open "Application Log Queries"
- Enable the filter "aws_tags exists" by clicking on the tick (the filter will turn blue)
You will be able to see all the logs from applications running in ECS.
CloudFront Logs in Logit.
We now have cloudfront logs in Logit and there is a nice Dashboard for you to look at.
https://kibana.logit.io/s/9423a789-282c-4113-908d-0be3b1bc9d1d/goto/8e0aeebe93e573111c873f9f5c9fd15b
To Search for CloudFront logs click open in the discover Tab and select "CloudFront Logs" in the saved searches
Query ECS logs in Cloudwatch
See all error logs across all ECS apps
- Log into the preview AWS console using
gds aws notify-preview -l
- Visit AWS Cloudwatch Logs Insights
- Select all log groups beginning with
/notify/ecs/
- Add the query
fields @timestamp, @message, @logStream, @log | filter @message like /ERROR/
- Choose your time and click 'Run query'