Last active
March 17, 2016 14:09
-
-
Save acsrujan/16709761375871141b92 to your computer and use it in GitHub Desktop.
Parses rails log file from bash to find out requests which took more than 75sec
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
arr=```grep -o "in.*ms" $LOG_FILE_NAME | awk '{if ($2-75000ms > 0) print $2}' | sort -r -n``` | for i in $arr; do grep -B 1 $i $LOG_FILE_NAME |awk '{print $2 FS $3}'; echo $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment