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

Your email address will not be published. Required fields are marked *