apache

Apache – Top 10 IP addresses accessing your Apache webserver

Default log paths /var/log/http/access_log [For RedHat based systems] /var/log/apache2/access.log [For Debian based systems] /var/log/http-access.log [For FreeBSD] Command Output 5482 103.28.37.1785356 66.249.78.1681977 66.249.93.1451962 157.55.39.2511924 66.249.93.1421921 66.249.93.1481890 64.233.173.1781860 108.61.183.1341841 64.233.173.1821582 157.55.39.251 Command explain awk ‘{ print $1}’ access.log – take the access.log and print first group (separated by white space) sort – sort records uniq -c – …

Apache – Top 10 IP addresses accessing your Apache webserver Read More »