counting failed login attempts group by ip address

cat /var/log/auth.log|grep fail|awk '{ print $14}'|sort|uniq --count|sort -nr

Leave a Reply