Menu
Amazon Simple Storage Service
Console User Guide (API Version 2006-03-01)

Managing Bucket Logging

Logging provides a way to get detailed access logs delivered to a bucket you choose. An access log record contains details about the request, such as the request type, the resources specified in the request worked, and the time and date the request was processed. For more information about the contents of a log, see Server Access Log Format in the Amazon Simple Storage Service Developer Guide.

Server access logs are useful for many applications because they give bucket owners insight into the nature of requests made by clients not under their control. By default, Amazon S3 doesn't collect service access logs, but when you enable logging Amazon S3 delivers access logs to your bucket on an hourly basis.

This section describes how to use the console to enable and disable logging for a bucket. You can store logs in the same bucket you enable logging for, or you can store the logs in a different bucket. For more information about bucket logging, see Accessing Server Logs in the Amazon Simple Storage Service Developer Guide.

Note

There is no extra charge for enabling server access logging on an Amazon S3 bucket. However, any log files the system delivers to you will accrue the usual charges for storage. (You can delete the log files at any time.) We do not assess data transfer charges for log file delivery, but we do charge the normal data transfer rate for accessing the log files.

To enable logging on a bucket

  1. Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/.

  2. Under All Buckets, click the bucket for which access requests will be logged.

  3. In the Details pane, click Properties

  4. Under Logging, do the following:

    • Select the Enabled check box

    • In the Target Bucket box, click the name of the bucket that will receive the log objects.

    • (optional) To specify a key prefix for log objects, in the Target Prefix box, type the prefix that you want.

  5. Click Save.

To disable logging on a bucket

  1. Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/.

  2. Under All Buckets, click the bucket for which access requests will be logged.

  3. In the Details pane, click Properties Under Logging, clear the Enabled check box.

  4. Click Save.