Skip to content

Instantly share code, notes, and snippets.

@ar7n
Created February 4, 2016 11:55
Show Gist options
  • Save ar7n/edf630604aacf9c7a35d to your computer and use it in GitHub Desktop.
Save ar7n/edf630604aacf9c7a35d to your computer and use it in GitHub Desktop.
Count the number of requests from IPs
cat access.log | awk '{print $1}' | sort -n | uniq -c | sort -nr | head -20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment