How to configure S3 server access logging
This section describes about how to record access logging for access to your bucket because S3 server access logging is disabled, by default, and S3 does not store server access in the log files. We will configure server access logging over an S3 bucket and verify that log files are generated when we access the S3 website.
Getting ready
If you run a web server, you may want to see and analyze the web server's access log files for the access to your website. To configure server access logging, you need to enable S3 Server Access Logging for your bucket on your own because it is not enabled by default. You can choose two ways to store access log objects in an S3 bucket, as follows:
- Create another bucket for server access logging.
- Use the same bucket for a static website and specify a target prefix under the bucket.
We will be using the same bucket for logging by specifying a target prefix.
How to do it…
It is simple to enable S3 Server Access...