Updated on 2025-04-03 GMT+08:00

Logging Overview

You can call an API to enable logging for a bucket (source) and configure another bucket (target) to store the log files.

When a bucket is created, logging is not enabled by default. You can call the API to enable logging for the bucket.

With logging enabled, a log message is generated for each operation on the bucket. Multiple log messages are packed into a file.

The target bucket for storing log files must be specified when logging is enabled. It can be the bucket logging is enabled for, or any other bucket you have access to. If you specify another bucket for storing logs, the bucket must be in the same region as the logged bucket. You can also specify access permissions and name prefixes for log files.

For more information, see Logging.