S3 can log traffic per key

This was one of my problems with using S3 for hosting purposes, is that I couldn’t find a way to track per key (file).  Turns out it’s a beta feature right now.  I doubt that it will be taken away though.

Server Access Logging Overview

An Amazon S3 bucket can be configured to create access log records for the requests made against it. An access log record contains details about the request such as the request type, the resource the request worked worked with, and the time and date that the request was processed. Server access logs are useful for many applications, because they give bucket owners insight into the nature of requests made by clients not under their control.

In the log you get the following data, amongst other things:

  • Request-URI “GET /mybucket/photos/2006/08/puppy.jpg?x-foo=bar” The Request-URI part of the HTTP request message.
  • Bytes Sent 2662992 The number of response bytes sent, excluding HTTP protocol overhead, or ‘-’ if zero.


Perfect.

powered by performancing firefox

Leave a Comment