LoggingWebsiteTraffic
(Optional) Configuring Web Traffic Logging
If you want to track the number of visitors who access your website, enable logging for the root domain bucket. Enabling logging is optional.
To enable logging for your root domain bucket
Open the Amazon S3 console at https://console.aws.amazon.com/s3/.
Create a bucket for logging named
logs.example.comin the same AWS Region that you created theexample.comandwww.example.combuckets in.Create two folders in the
logs.example.combucket; one namedroot, and the other namedcdn. If you configure Amazon CloudFront to speed up your website, you will use thecdnfolder.In the Bucket name list, choose your root domain bucket, choose Properties, and then choose Server access logging.
Choose Enable logging.
For Target bucket, choose the bucket that you created for the log files,
logs.example.com.For Target prefix, type root/. This setting groups the log data files in the bucket in a folder named
rootso that they are easy to locate.Choose Save.
You can now review your logs in the logs.example.com bucket, in both the root and cdn folders.