Created
September 30, 2012 06:26
-
-
Save jasperf/3806037 to your computer and use it in GitHub Desktop.
Check for Heavy Site Users by IP via Shell #serveradmin
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 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