I have an public API how needs authentication and block all users who try brute force...
I'm thinking in log all operations in /var/log/auth.log using syslog, and configure fail2ban to add IP from user in deny list of iptables.
This is a good solution? Any ideas?