MySQL 8.0+ deprecated config log-warnings in filter.d/mysqld-auth.conf comments, massaging MariaDB, tuning regex #3258
PhilipClarke
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As correctly identified in the release notes for ver. 0.10.5, MySQL v8.0+ has deprecated a server config log-warnings and changed to log-error-verbosity
filter.d/mysqld-auth.conf
:enclosed in brackets after "[Note]" (Filter: mysqld-auth not compatible with MySQL 8.0.13 #2314)
so the comments for fail2ban/config/filter.d/mysqld-auth.conf
should be changed to (to avoid MySQL crashing on start up)
also MySQL [MY-010925] and MariaDB ER_ACCESS_DENIED_NO_PASSWORD_ERROR, error messages have no white space after the ‘’ regex so there needs a tweak from
filter.d/mysqld-auth.conf line 20
to
which matches original test log line
and
Sources:
https://dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html
https://mariadb.com/docs/reference/mdb/error-codes/ER_ACCESS_DENIED_NO_PASSWORD_ERROR/_
Additional notes:
to
or similar so that the comment in mysql-auth.conf is the defacto error log location across distros.
2022-04-15 16:35:46 175 [Warning] Aborted connection 175 to db: 'unconnected' user: 'unauthenticated' host: '192.241.216.111' (CLOSE_CONNECTION)
which can be picked up by the regex
Beta Was this translation helpful? Give feedback.
All reactions