Ask Your Question
0

the last access time of the object

asked 2013-10-08 08:44:15 -0500

qi-weining gravatar image

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.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2013-10-09 20:07:25 -0500

torgomatic gravatar image

The relevant method is log_request in proxy_logging.py.

edit flag offensive delete link more
0

answered 2013-10-08 18:13:56 -0500

torgomatic gravatar image

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.

edit flag offensive delete link more
0

answered 2013-10-09 03:45:55 -0500

qi-weining gravatar image

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?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-10-08 08:44:15 -0500

Seen: 25 times

Last updated: Oct 09 '13