Plugin Title | CloudFront Logging Enabled |
Cloud | AWS |
Category | CloudFront |
Description | Ensures CloudFront distributions have request logging enabled. |
More Info | Logging requests to CloudFront distributions is a helpful way of detecting and investigating potential attacks, malicious activity, or misuse of backend resources. Logs can be sent to S3 and processed for further analysis. |
AWS Link | http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html |
Recommended Action | Enable CloudFront request logging. |
- 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.