Reads:41094Replies:0
Put Bucket Logging
Put Bucket Logging
The OSS provides bucket access logs for bucket owners to understand and analyze bucket access behaviors in a convenient way. The bucket access logs provided by the OSS do not guarantee that every single access record is logged. A bucket owner can enable the access logging function for his/her bucket. When this function is enabled, the OSS automatically records detailed information about the requests to this bucket, and follows the user-specified rules to write the access logs as an object into the user-specified bucket hourly.The OSS provides bucket access logs for bucket owners to understand and analyze bucket access behaviors in a convenient way. The bucket access logs provided by the OSS do not guarantee that every single access record is logged. Request Syntax
Request Elements
Naming Rules for the Objects Storing Access Logs In the naming rules, the TargetPrefix is specified by the user; YYYY, mm, DD, HH, MM and SS give the year, month, day, hour, minutes and seconds of the creation time in Arabic numerals (note the digits); and UniqueString is the string generated by the OSS system. An example for the name of an object actually used to store OSS access logs is given below: 1.MyLog-oss-example-2012-09-10-04-00-00-0000 In the above example, “MyLog-“ is the Object prefix specified by the user;“oss-example” is the name of the origin bucket; “2012-09-10-04-00-00”is the Object creation time (Beijing time); and “0000” is the string generated by the OSS system. Log File Format
Example Example of the request for enabling bucket access logs:
Return example:
Example of the request for disabling bucket access logs:
Return example:
[Charlene edited the post at Jul 22, 2016 9:01 AM]
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||