Linux – Sort unique IP from Apache log and count entries

Usefull!

cat /path/access.log | awk '{print $1}' | sort -n | uniq -c | sort -nr | head -50

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.