Runbook for new AWS infrastructure - alphagov/notifications-manuals GitHub Wiki

AWS

Query CloudWatch ECS logs in Logit

  1. Log into Logit and click the open to open a saved search
  2. Open "Application Log Queries"
  3. 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

  1. Log into the preview AWS console using gds aws notify-preview -l
  2. Visit AWS Cloudwatch Logs Insights
  3. Select all log groups beginning with /notify/ecs/
  4. Add the query
    fields @timestamp, @message, @logStream, @log
    | filter @message like /ERROR/
    
  5. Choose your time and click 'Run query'