Created
March 6, 2011 12:07
-
-
Save riivo/857235 to your computer and use it in GitHub Desktop.
Find hostnames of top 10 IP-addresses in you web server log file
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 -r | head | awk '{print $2}' | xargs -L1 host |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment