Created
September 4, 2014 17:18
-
-
Save hectorperez/e057370fc522f5b0a210 to your computer and use it in GitHub Desktop.
filter Rails logs which duration > 500 ms
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
cat production.log | grep duration | awk 'a=$7,gsub(/[a-z=]/,"",a) {print a, $1, $2}' | awk '{if ($1 > 500) print $1, $2, $3}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment