Created
September 27, 2011 19:56
-
-
Save ArthurN/1246057 to your computer and use it in GitHub Desktop.
Print date/time and query length (ms) from mongod log file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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