From 1e3c5920818b97f5715d426f90fbac20d795471f Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 4 Nov 2019 19:08:58 +0300 Subject: [PATCH] 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. --- playbooks/roles/logcheck/files/ignore.d/local-ssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5