From: Oleg Broytman Date: Mon, 4 Nov 2019 16:08:58 +0000 (+0300) Subject: Fix(logcheck): Fix regexp syntax in `local-ssh` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;ds=sidebyside;h=1e3c5920818b97f5715d426f90fbac20d795471f;hp=c821c73a3f894ee0783adf0a7e9fc14817ab1e42;p=ansible.git Fix(logcheck): Fix regexp syntax in `local-ssh` `logcheck` uses `grep -E` so unescaped parenthesis are used for grouping; literal parenthesis must be escaped with backslash. --- diff --git a/playbooks/roles/logcheck/files/ignore.d/local-ssh b/playbooks/roles/logcheck/files/ignore.d/local-ssh index ae96ad6..f4c173f 100644 --- a/playbooks/roles/logcheck/files/ignore.d/local-ssh +++ b/playbooks/roles/logcheck/files/ignore.d/local-ssh @@ -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