Open main menu

Changes

108 bytes added ,  14:08, 17 January 2018
grep for POST
awk '$6 ~ "POST" && $7 ~ "wp-login" { ips[$1]++ } END {for (ip in ips) { print ip, " ", ips[ip], " POSTs" }}' /var/log/apache2/access.log
</source>
or, <source lang="bash">grep POST /var/log/apache2/access.log | cut -d ' ' -f 1 | sort | uniq -c</source>
{{References}}
4,558

edits