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

CDbConnection failed to open the DB connection mysql 8

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

IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified [ISQL]ERROR: Could not SQLConnect