Engine23

Apache - How to get the IP of requests to your server

I recently needed to figure out what IP was hammering our site.  It was so bad it almost came to crash.

tail -50000 /var/log/httpd/yourwebsite.com_http_request_log | awk '{print $1}' | sort | uniq -c | sort -n | tail

Share: