You should configure CloudFront Access Logging to create log files that contain detailed information about every user request that CloudFront receives
Follow the appropriate remediation steps below to resolve the issue.
Enable logging for CloudFront distributions
|
|
Log in to the AWS Management Console.
Select the “Services” option and search for CloudFront.
Select the “CloudFront Distribution” that needs to be verified.
Click on the selected Distribution to get into the CloudFront Distribution configuration page.
In the “General” tab scroll down to settings and verify the “Standard logging” feature configuration status. If Logging is “Off” then it cannot create log files that contain detailed information about every user request that CloudFront receives.
To change the status click on “Edit” to get to the “Edit Settings” page. Scroll down to “Standard Logging” and select the “On” option to initiate the Logging feature of CloudFront to log all viewer requests for files in your distribution.
Click on “Bucket for Logs” feature and specify the Amazon S3 bucket in which you want CloudFront to save web access logs.
Click on Log Prefix which is optional for the names of log files.
Scroll down and click on “Save changes” to save the new settings.
Repeat the steps number 3 to 9 to verify if any other “CloudFront Distribution” has Logging enabled or not.