Last updated：2021-10-18 16:00:49
You can enable and disable logging for buckets in the Kingsoft Cloud Standard Storage Service (KS3) console. You can store the logs of a bucket in the same bucket itself or create a bucket in the same region to store the logs.
By default, logging is disabled for buckets in KS3. You can enable logging for a bucket and manually specify the storage location.
A log file is named in the format of
For more information about the API operation for configuring logging, see GET Bucket logging.
The following table describes the fields in a log. The fields are arranged from left to right and separated with tabs.
|The Base64-encoded result of the Kingsoft Cloud account ID.
|The bucket name.
|The time when the log was generated.
|The request IP address.
|The requester. If the requester is an anonymous user, the field value is Anonymous.
If the requester is a Kingsoft Cloud account, the field value is the Base64-encoded result of the Kingsoft Cloud account ID.
If the requester is an IAM user, the field value is the Base64-encoded result of a string in the format of `ID of the Kingsoft Cloud account/Username of the IAM user.
|The request ID.
|The operation. The operation in this example is Post Object.
|The object key.
|"POST /chenjin.jpg HTTP/1.1"
|The request URL.
|The request status code.
|The error code.
|The number of bytes that are sent.
|The size of the accessed resource.
|The total request duration, measured in seconds and accurate to milliseconds.
|The round trip duration between NGINX and the API server, measured in seconds and accurate to milliseconds.
|The request referer.
|"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"
|The user agent.
|The version ID. This field is reserved.
|The storage class of the accessed resource.
|The user type. By default, this field is not displayed for regular users. For CDN users, the field value is kc.
|The NGINX port. Ports 8000 and 4433 are used for access over the internal network. Port 80 is used for access over the Internet.
|Web application, which is easy to use
|SDK for Java
|Diversified and complete SDK demos in various languages
|SDK for PHP
|SDK for Node.js
|SDK for Go