Command to find number of IP hits in http using access.log

tail -n2000 /var/www/domains/*/*/logs/access_log | awk '{print $1}' | sort | uniq -c | sort -n | awk '{ if ($1 > 20)print $1,$2}'

Comments

Popular posts from this blog

How to replace find -maxdepth option in Solaris Operating System using -prone

Installing RPMforge for CentOS 5

Linux Command to change the permisson of multiple directories/files having the same name