List top 10 visitors by IP

Posted on May 22nd, 2008 in Tools, Work by abdallah

The quick and dirty way:
cat $LOGFILE | awk '{ print $1 }' | uniq -c | sort -nr | head -n10

Post a comment

You must be logged in to post a comment.