From 13563fd09b05604a5be32625663ea4533facf66d Mon Sep 17 00:00:00 2001 From: sebres Date: Wed, 24 Sep 2025 16:23:05 +0200 Subject: [PATCH] combine both REs to single RE, no prefregex needed here --- config/filter.d/froxlor-auth.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/filter.d/froxlor-auth.conf b/config/filter.d/froxlor-auth.conf index ab85c9cf..c6f35e15 100644 --- a/config/filter.d/froxlor-auth.conf +++ b/config/filter.d/froxlor-auth.conf @@ -20,15 +20,15 @@ before = common.conf [DEFAULT] _daemon = [Ff]roxlor +_re = (?:Unknown )?[uU]ser(?: '(?:\S*|[^']*)')? tried to login(?: with wrong password)?\. + [type1] -prefregex = ^%(__prefix_line)s\[Login Action \] .+$ +failregex = ^%(__prefix_line)s\[Login Action \] %(_re)s$ [type2] -prefregex = ^%(__prefix_line)sfroxlor\.WARNING: .+ \{(?:"[^"]+":"[^"]*",\s*){,5}"user":""\} \[\]$ +failregex = ^%(__prefix_line)sfroxlor\.WARNING: %(_re)s \{(?:"[^"]+":"[^"]*",\s*){,5}"user":""\} \[\]$ [Definition] type = 2 -prefregex = /prefregex> -failregex = ^Unknown user(?: \S*)? tried to login\.$ - ^User(?: \S*)? tried to login with wrong password\.$ +failregex = /failregex> ignoreregex =