Created
July 6, 2018 00:27
-
-
Save nad2000/8055c439ef0e5802b9ca760c0e4798ae to your computer and use it in GitHub Desktop.
TOP 12 slowest requests form Apache access_log
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
# 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