Count requests per IP in an nginx access log Snippet·May 21, 2015 awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head -20