When you first configure your CloudFront account provider, extended statistics and unified log streaming are not enabled by default.
To enable log streaming from CloudFront, additional configuration is required. This configuration only needs to be performed once per AWS account and will then be automatically applied to all services associated with that account.
Extended statistics and unified logs for CloudFront are based on real-time logs generated by your CloudFront distributions. These logs are streamed through AWS Kinesis to the Flumotion Smart Multi CDN platform.
To enable this functionality, you need to create an AWS Kinesis stream. Once configured, logs will be automatically streamed and extended statistics will be available in the service dashboard.
You can create the required AWS Kinesis stream using one of the following methods:
- Using CloudFormation – Use this quick-create link to create the required resources.
- Using Terraform – Use this code to create the Kinesis stream.
Important Notes #
- The Kinesis stream must be created in the
us-east-1region. - In addition to creating the stream, the methods above also create an AWS IAM Role that allows CloudFront to stream logs to the newly created Kinesis stream.
- The names of the IAM Role and Kinesis stream must not be modified.
- AWS charges for both the AWS Kinesis stream and the streaming of logs. For more information, refer to the AWS documentation here.