Skip to main content

Amazon S3 Usage Logs

Log Type: Amazon S3 Usage

Template Description: Parsing the common fields in your Amazon S3 Usage log.

Sample Log:

6ec976a42247d687d5d1c87bb53e87c60c925765f87415f472d240c5d18337a7 stag-bloomfilter-000000000000141d [2017-08-16] 209.118.103.150 user/stag-bloomfilter CC487A9D90678CAB REST.GET.OBJECT 636C271B3F171BB8-000000000138CE3D-1405616382510-v1 "GET /636C271B3F171BB8-000000000138CE3D-1405616382510-v1 HTTP/1.1" 200 - 26828 369 89 11 "-" "aws-sdk-java/1.7.11 Linux/3.2.0-57-virtual OpenJDK_64-Bit_Server_VM/23.2-b09/1.7.0_09" -

Parsing Rule:

parse "* * [*] * * * * * \"* HTTP/1.1\" * * * * * * * \"*\" *" as bucket_owner, bucket, time, remoteIP, requester, request_ID, operation, key, request_URI, status_code, error_code, bytes_sent, object_size, total_time, turn_time, referrer, user_agent, version_ID

Resulting Fields:

FieldDescriptionExample
bucket_ownerThe canonical user ID of the owner of the source bucket.6ec976a42247d687d5d1c87bb53e87c60c925765f87415f472d240c5d18337a7
bucketThe name of the bucket that the request was processed against.stag-bloomfilter-000000000000141d
timeThe timestamp at which the request was received.2017-07-13
remoteIPThe apparent internet address of the requester.62.118.225.244
requesterThe canonical user ID of the requester, or "-" for unauthenticated requests.user/stag-bloomfilter
request_IDThe request ID is a string generated by Amazon S3 to uniquely identify each request.B5C788A74FDFA7E7
operationThe operation listed here is declared as SOAP.operation, REST.HTTP_method.resource_type,WEBSITE.HTTP_method.resource_type, or BATCH.DELETE.OBJECTREST.PUT.OBJECT
keyThe "key" part of the request, URL encoded, or "-" if the operation does not take a key parameter.636C271B3F171BB8-000000000138CE3D-1405616382510-v1
request_URIHTTP request method.GET /636C271B3F171BB8-000000000138CE3D-1405616382510-v1
status_codeHTTP response status code.200
error_codeThe Amazon S3 Error Code, or "-" if no error occurred.NoSuchKey
bytes_sentThe number of response bytes sent, excluding HTTP protocol overhead, or "-" if zero.5982
 object_sizeThe total size of the object in question. 50768
 total_timeThe number of milliseconds that the request was in flight from the server's perspective. 27
 turn_time The number of milliseconds that the Amazon S3 spent processing your request. 24
 referrer The website from which the client reports are referred. "http://www.amazon.com/webservice"
 user_agent Information about the client browser. aws-sdk-java/1.7.11 Linux/3.2.0-57-virtual OpenJDK_64-Bit_Server_VM/23.2-b09/1.7.0_09
 version_ID The version ID in the request, or "-" if the operation does not take a versionId parameter. 3HL4kqtJvjVBH40Nrjfkd
Status
Legal
Privacy Statement
Terms of Use

Copyright © 2024 by Sumo Logic, Inc.