sudo cscli collections install crowdsecurity/apiscpInstalls 9 parsers and 56 scenarios, via MySQL - Bruteforce Protection.
View ApisCP →sudo cscli parsers install crowdsecurity/mysql-logsThen reload CrowdSec: sudo systemctl reload crowdsec
Sign in to see which of your engines run it →Hover a line or a note to see what each field does.
onsuccess: next_stagename: crowdsecurity/mysql-logsdescription: "Parse MySQL logs"filter: "evt.Parsed.program == 'mysql'"pattern_syntax:MYSQL_ACCESS_DENIED: "Access denied for user '%{DATA:user}'@'%{IP:source_ip}' \\(using password: %{WORD:using_password}\\)"nodes:- grok:pattern: "%{TIMESTAMP_ISO8601:time} %{NUMBER} \\[Note\\]( \\[%{DATA:err_code}\\] \\[%{DATA:subsystem}\\])? %{MYSQL_ACCESS_DENIED}"apply_on: message- grok:pattern: "%{TIMESTAMP_ISO8601:time}.*%{NUMBER} Connect.*%{MYSQL_ACCESS_DENIED}"apply_on: messagestatics:- meta: log_typevalue: mysql_failed_auth- meta: source_ipexpression: "evt.Parsed.source_ip"- target: evt.StrTimeexpression: evt.Parsed.time- meta: userexpression: "evt.Parsed.user"
Sign in to see the Security Engines that run this log parser, the version they run and whether it was modified locally.
Mysql authentication fail parser.