Skip to content

Instantly share code, notes, and snippets.

@ArthurN
Created September 27, 2011 19:56
Show Gist options
  • Save ArthurN/1246057 to your computer and use it in GitHub Desktop.
Save ArthurN/1246057 to your computer and use it in GitHub Desktop.
Print date/time and query length (ms) from mongod log file
awk -F' ' '{ print $1 " " $2 " "$3 " " $4 " " $(NF) }' mongod.log | grep 'ms'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment