Grep Apache access_log and list IP’s by hits and date sorted


Esempio:

grep Oct/2014 /var/log/httpd/access_log | awk '{ print $1 }' | sort -n | uniq -c | sort -rn | head