All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

Log management

Last updated:2024-03-15 14:07:25

1. How can I enable logging?

2. When can I see the log information of the day?

3. What fields does a user log message have?


1. How can I enable logging?
  1. Log in to the KS3 management console, choose Object Storage, and select the target bucket.

  2. Choose Bucket Settings > Log Status Settings and select Open. Select the log storage location and click Save. For management convenience, save logs to a separate bucket. For more information, see Log settings.

2. When can I see the log information of the day?

The log delay time is one day. You can see the log information of a day in the afternoon of the next day.

3. What fields does a user log message have?

Field

Example

Remarks

bucket_owner

NzM0MDEzMzI=

Base64 encoded user ID.

bucket

bucket_test

Bucket name.

time

[11/Jan/2016:15:05:35 +0800]

Time.

remote_ip

219.141.176.229

Request IP address.

requester

Anonymous

If the requester is anonymous, the value is Anonymous.
If the requester is a primary account user, the value is the Base64 encoded user ID.
If the requester is a sub-user, the value is the Base64 encoded user ID/sub-user name.

request_id

1e6ac821e4904e4ca21d3a9e0ce52e25

Request ID.

operation

REST.POST.OBJECT

Operation, which is Post Object in the example.

key

-

Object Key

request_uri

"POST /chenjin.jpg HTTP/1.1"

Requested URL.

http_status

200

Request status code.

error_code

-

Error code.

bytes_sent

461

Number of bytes sent.

object_size

139008

total_time

2

Total request time in seconds, accurate to milliseconds.

turn_around_time

2

Round trip time from Nginx to API server in seconds, accurate to milliseconds.

referer

"http://ks3.ksyun.com/console.html"

Referer of the request

user_agent

"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"

User agent

version_id

-

Version ID. This field is not used currently.

storageclass

Standard

Storage class of the accessed resource.

usertype

-

Use type. For a common user, this field displays nothing. For a CDN user, this field displays kc.

nginx_port

80

Nginx port list, which contains 8000 and 4433 for an internal access and contains 80 for an external access.

On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback