Find out who’s hammering your web server
Posted 1 month, 1 week ago at 4:45 pm. 2 comments
cat /path/to/access-log | awk {'print $1'} | sort | uniq -c | sort -n | tail -100awk {’print $1′} : print the IP column
sort : sort by ip
uniq - c : count uniques
sort -n : numeric sort
tail -100 : show last 100 hits
Uporabno! :) Fajn je se bolj detaljno pogledat, z npr. | grep “10/Jan” z default combined logom.
hmnjah :) ce mas log rotate ob 00:00 ni frkce :P