ColdStack Docs
  • Introduction
  • ColdStack FAQ
  • Binance Smart Chain Bridge
    • Release
    • Customer Support
    • FAQ
    • Step-by-Step Guide
  • Concepts
    • Bucket versioning
    • Logging actions with a bucket
  • Tools
    • Supported tools
      • CyberDuck S3 Client
      • S3 Browser
      • AWS CLI Console client
      • SDKs for different languages
        • JavaScript SDK
        • Using extended API with JavaScript
        • AWS SDK for Java
        • Python SDK (boto)
  • S3 Compatible API
    • How to use the API
    • Signing Requests
    • API Reference
      • Bucket
        • HeadBucket
        • ListObjects/ListObjectsV2
        • PutBucketVersioning
        • PutBucketLogging
        • RenameBucket
        • GetBucketLocation
        • ListBuckets
      • Object
        • PutObject
        • GetObject
        • HeadObject
        • RenameObject
        • PutObjectAcl
      • Multipart upload
        • General multipart upload order
        • CreateMultipartUpload
        • UploadPart
        • CompleteMultipartUpload
        • ListMultipartUploads
      • Analytics
        • GetStatistics
        • GetBandwidthAnalytics
        • GetStorageAnalytics
      • Common request headers
      • Common response headers
      • Responses
Powered by GitBook
On this page
  • Request
  • Response

Was this helpful?

  1. S3 Compatible API
  2. API Reference
  3. Bucket

PutBucketLogging

PreviousPutBucketVersioningNextRenameBucket

Last updated 2 years ago

Was this helpful?

Enables and disables the .

Request

PUT /{bucket}?logging HTTP/1.1

Path parameters

Parameter
Description

bucket

Name of the bucket.

Query parameters

Parameter
Description

logging

Required parameter that indicates the type of operation.

Data schema

To enable logging of actions with the bucket:

<?xml version="1.0" encoding="UTF-8" ?>
<BucketLoggingStatus xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
   <LoggingEnabled>
      <TargetBucket>bucket-logs</TargetBucket>
      <TargetPrefix>logs/</TargetPrefix>
   </LoggingEnabled>
</BucketLoggingStatus>
Element
Description

BucketLoggingStatus

Root element.

TargetBucket

The name of the target bucket where the objects are saved with logs. Type: String.

TargetPrefix

Object key prefix with logs. Type: String.

To disable logging of actions with the bucket:

<BucketLoggingStatus xmlns="http://doc.s3.amazonaws.com/2006-03-01" />

Headers

Response

Headers

Response codes

A successful response does not contain any additional data.

Use only in requests.

Responses can only contain .

For a list of possible responses, see .

mechanism for logging actions with the bucket
common request headers
common response headers
Responses