Created
February 3, 2021 19:05
-
-
Save deevis/ba64c05f54d9639f4b3b872e584be2c4 to your computer and use it in GitHub Desktop.
Get longest running requests from log file
This file contains hidden or 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
| for t in `grep "Finished:" log/production.log | sed 's/.*]: \(.*\)s/\1/g' | sort -n | tail -n 20`; do grep $t log/production.log; done | sed 's/\(.*\) INFO.*Finished: \(.*\)/\1 \2/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment