Skip to content

Instantly share code, notes, and snippets.

@rueckstiess
Created February 14, 2014 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rueckstiess/8987628 to your computer and use it in GitHub Desktop.
Save rueckstiess/8987628 to your computer and use it in GitHub Desktop.
demo of mloginfo --queries
$ mloginfo mongod_noprefix.log --queries
source: mongod_noprefix.log
start: 2014 Apr 05 06:39:57
end: 2014 Apr 06 06:27:07
date format: ctime-pre2.4
length: 58224
binary: mongod
version: 2.2.3
QUERIES
pattern count min (ms) max (ms) mean (ms) sum (ms)
{"_types": 1, "emails.email": 1} 804 101 1262 201 162311
{"_id": 1} 653 101 1512 311 203508
{"_id": 1, "host": 1, "ns": 1} 131 101 1048 310 40738
{"datetime_used": {"$ne": 1}} 20 15753 17083 16434 328692
{"_id": 1, "_types": 1} 13 121 500 285 3712
{"_types": 1, "email": 1, "pp_user_id": 1} 13 153 11639 2465 32053
{"session_key": 1} 7 111 684 277 1940
{"_types": 1, "request_code": 1} 6 143 459 277 1663
{"emails.email": 1} 2 218 422 320 640
{"session_endtime": 1, "session_userid": 1} 1 244 244 244 244
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment