Access Logging Overview

OBS can record bucket access requests in logs for request analysis and log audit.

Logs occupy some OBS storage space rented by users, causing extra fees. For this reason, OBS does not collect bucket access logs by default.

Approximately five minutes after log management is successfully configured, you can view the operation logs in the target bucket that stores the logs.

The following shows the access log of the target bucket:

787f2f92b20943998a4fe2ab75eb09b8 bucket [13/Aug/2015:01:43:42 +0000] 192.144.1.113 787f2f92b20943998a4fe2ab75eb09b8 281599BACAD9376ECE141B842B94535B REST.GET.BUCKET.LOCATION - "GET /bucket?location HTTP/1.1" 200 - 211 - 6 6 "-" "HttpClient" -

The access log of each bucket contains the following information.

Table 1 Bucket log format

Name

Description

Example

BucketOwner

ID of the bucket owner

787f2f92b20943998a4fe2ab75eb09b8

Bucket

Bucket name

bucket

Time

Request timestamp

[13/Aug/2015:01:43:42 +0000]

Remote IP

Request IP address

192.144.1.113

Requester

ID of the requester

787f2f92b20943998a4fe2ab75eb09b8

RequestID

ID of the request

281599BACAD9376ECE141B842B94535B

Operation

Operation

REST.GET.BUCKET

Request-URI

Request URI

GET /bucket?location HTTP/1.1

HTTPStatus

Return code

200

BytesSent

Size of the HTTP response, expressed in bytes

211

TotalTime

Processing time on the server

6

Turn-AroundTime

Total request processing time

6

Registration