Skip to content

How do I turn on logging for my CloudFront distribution?

1 minute read
0

I want to log the requests that come to my Amazon CloudFront distributions.

Short description

Use standard logging (v2) to send your CloudFront access logs to Amazon CloudWatch Logs, Amazon Data Firehose, or Amazon Simple Storage Service (Amazon S3). CloudFront uses CloudWatch vended logs to deliver access logs.

Resolution

Before you configure standard logs, make sure that you have permissions to access CloudWatch Logs, Firehose, or Amazon S3

To configure standard logging (v2), use the CloudFront console or use the CloudWatch API.

Note: To activate standard logs, you must use the Pro plan or pay-as-you-go pricing

To use CloudFront real-time logs, see Create and use real-time log configurations.

Note: CloudFront charges for real-time logs, in addition to the charges that you incur when you use Amazon Kinesis Data Streams.