This simple plugin enables logging of failed authentication attempts in Piwik, nothing more, nothing less. Failed login attempts are logged like this:
WARNING LoginFailLog[2017-07-22 23:35:20] [b215d] Failed login from 184.108.40.206 'patrick'. WARNING LoginFailLog[2017-07-22 23:35:20] [b215d] Failed login from 220.127.116.11 with username 'patrick'.
This is useful if you want to secure your Piwik instance with fail2ban or similar tools that work on log files. For example, the following filter can be used with fail2ban to detect and count login fails:
# Fail2Ban configuration file for Piwik with LoginFailLog plugin [Definition] failregex = .* Failed login from <HOST> with username .*
This plugin is compatible with Piwik 3 (see requirements below for more details).