the last access time of the object

Asked by Qi Weining on 2013-10-08

I want to know the last access time of the object. I do not find it in API. Who can tell me where can I find the last access time of the object, including the last write time, the last read time, etc.

Question information

English Edit question
OpenStack Object Storage (swift) Edit question
No assignee Edit question
Last query:
Last reply:
Samuel Merritt (torgomatic) said : #1

You can get the last write time from the X-Timestamp header on an object GET or HEAD request.

The last read time is not stored anywhere, but you may be able to extract it from the proxy's logs.

Qi Weining (qi-weining) said : #2

Thanks. Your answers help me a lot.
I want to compress or remove the objects that not be accessed for a long time, so the last read time is important.
Can you tell me where is the source code of the proxy's logs about the read time?

Samuel Merritt (torgomatic) said : #3

The relevant method is log_request in

Can you help with this problem?

Provide an answer of your own, or ask Qi Weining for more information if necessary.

To post a message you must log in.