Amazon Simple Storage Service
Developer Guide (API Version 2006-03-01)

(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

  1. Open the Amazon S3 console at

  2. Create a bucket for logging named in the same AWS Region that the and buckets were created in.

  3. Create two folders in the bucket; one named root, and the other named cdn. If you configure Amazon CloudFront to speed up your website, you will use the cdn folder.

  4. In the Bucket name list, choose your root domain bucket, choose Properties, and then choose Server access logging.

  5. Choose Enable logging.

  6. For Target bucket, choose the bucket that you created for the log files,

  7. For Target prefix, type root/. This setting groups the log data files in the bucket in a folder named root so that they are easy to locate.

  8. Choose Save.

You can now review your logs in the bucket, in both the root and cdn folders.