Skip to content

Instantly share code, notes, and snippets.

@deevis
Created February 3, 2021 19:05
Show Gist options
  • Select an option

  • Save deevis/ba64c05f54d9639f4b3b872e584be2c4 to your computer and use it in GitHub Desktop.

Select an option

Save deevis/ba64c05f54d9639f4b3b872e584be2c4 to your computer and use it in GitHub Desktop.
Get longest running requests from log file
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