mozilla-it / sumo-infra

Infrastructure for support.mozilla.org
1 stars 3 forks source link

Enable logging on cloudfront distributions #28

Closed ziegeer closed 5 years ago

ziegeer commented 5 years ago

Enable logging on cloudfront distributions so that we can diagnose e.g. high 4xx errors.

kfferrando commented 5 years ago

Pushed this in d7808c0bf7217e2ec3788b45b97ef899de475739. I am working on correctly creating the S3 bucket with Terraform and applying a lifecycle.

There are some interesting bits for CF log processing here: https://aws.amazon.com/blogs/big-data/build-a-serverless-architecture-to-analyze-amazon-cloudfront-access-logs-using-aws-lambda-amazon-athena-and-amazon-kinesis-analytics/

I will leave this open until all the S3 bucket Terraform has been committed.

kfferrando commented 5 years ago

Ok this is live in cca6795f1d7dc914648cd3c31de5e3a03eb2c54e and added 2 week lifecycle on logs in 6404946bf53d03306f9c854d23bb3a4c34a9817d