I am running Apache server and would like to find out who (IP address) is making a lot of request for the last 24 hours using command line.
awk '/29\/Sep\/2011/ { print $1 }' /path/to/access_log | sort | uniq -c | sort -rn | head
Also like to find out who has the most open connection at the moment?
netstat -natp | grep httpd | awk '{ print $5 }' | cut -d: -f1 | sort | uniq -c | sort -rn | head