Skip to content

Instantly share code, notes, and snippets.

@jasperf
Created September 30, 2012 06:26
Show Gist options
  • Save jasperf/3806037 to your computer and use it in GitHub Desktop.
Save jasperf/3806037 to your computer and use it in GitHub Desktop.
Check for Heavy Site Users by IP via Shell #serveradmin
cat access.log | awk '{print $1}' | sort | uniq -c | sort -n | tail
# in awk $1 is first column
# in uniq -c asks each output line to be preceded with the count of the number of times
# the line occurred in the input, followed by a single space.
# See http://wiki.dreamhost.com/VPS_Troubleshooting
# You need to be @ /home/user/logs/domain/http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment