Skip to content

Instantly share code, notes, and snippets.

@nad2000
Created July 6, 2018 00:27
Show Gist options
  • Save nad2000/8055c439ef0e5802b9ca760c0e4798ae to your computer and use it in GitHub Desktop.
Save nad2000/8055c439ef0e5802b9ca760c0e4798ae to your computer and use it in GitHub Desktop.
TOP 12 slowest requests form Apache access_log
# Make sure you are collectin the time it takes to hadle the request
# LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D" combined_with_response_time
# CustomLog logs/access_log combined_with_response_time
grep -E $(cut -d\ -f 21 access_log | sort -n | tail -12 | tr -d '\r' | tr '\n' '|')99999 orcidhub_log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment