Last active
August 29, 2015 14:01
-
-
Save libbkmz/505bacd7f228fafbfe32 to your computer and use it in GitHub Desktop.
requests per minute. Sort by time and ip
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
| cat /var/log/nginx/access.log.1 | cut -d " " -f1,4,7 | sed -r 's/^(.+)?:([0-9]{2}):([0-9]{2}):([0-9]{2})(.+)$/\1:\2:\3 \5/g' | awk '{print $2 " " $1 " " $3 }' | sort | uniq -c | sort -g | tail -n 1000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment