Can you see recent (sets/gets) operations in UI/command line


#1

The admin UI has a Top Keys section, which seem to show the most active/request keys in a bucket. However, I was trying to find a way to see the most recent keys inserted/requested (not just the most active). Is there a command or something that I am missing that would allow me to see the most recent operations occurring in a bucket (or particular server)?

Thanks,

Damian


#2

you will have to do a map reduce job and query it.

{
“YourDoc”:“Document”,
“CreatedDateTime”:“2000-01-17 17:15:55”
}

Just map reduce doc.CreatedDateTime with Couchbase built in function dateToArray() and do a range query start_key to end_key.


#3

Thanks! That will give me recent Sets, but how would you handle/track recent Get Ops?