]> git.phdru.name Git - ansible.git/commitdiff
Fix(logcheck): Fix regexp syntax in `local-ssh`
authorOleg Broytman <phd@phdru.name>
Mon, 4 Nov 2019 16:08:58 +0000 (19:08 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 4 Nov 2019 16:08:58 +0000 (19:08 +0300)
`logcheck` uses `grep -E` so unescaped parenthesis are used for grouping;
literal parenthesis must be escaped with backslash.

playbooks/roles/logcheck/files/ignore.d/local-ssh

index ae96ad6fbf05a0c01c39eb2cb9b89dd4f8ac0f6a..f4c173f4a31e65e559f2abbc563325e78ee6dccc 100644 (file)
@@ -14,5 +14,5 @@
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ sshd\[[0-9]+\]: fatal: Unable to negotiate a key exchange method \[preauth\]$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ sshd\[[0-9]+\]: fatal: no hostkey alg \[preauth\]
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ sshd\[[0-9]+\]: input_userauth_request: invalid user.+\[preauth\]$
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ sshd\[[0-9]+\]: pam_unix(sshd:auth): bad username
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ sshd\[[0-9]+\]: pam_unix\(sshd:auth\): bad username