From 15f2f3897259ed23c7fd1da1f94807c405fa9c18 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Wed, 28 Aug 2013 12:32:40 +1000 Subject: [PATCH] ENH: anchor regex at start --- config/filter.d/named-refused.conf | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/config/filter.d/named-refused.conf b/config/filter.d/named-refused.conf index 21afb07d..1b6f4d4d 100644 --- a/config/filter.d/named-refused.conf +++ b/config/filter.d/named-refused.conf @@ -21,16 +21,11 @@ __daemon_combs_re=(?:%(__pid_re)s?:\s+%(__daemon_re)s|%(__daemon_re)s%(__pid_re) # this can be optional (for instance if we match named native log files) __line_prefix=(?:\s\S+ %(__daemon_combs_re)s\s+)? -# Option: failregex -# Notes.: regex to match the password failures messages in the logfile. -# Values: TEXT -# -failregex = %(__line_prefix)sclient #\S+( \([\S.]+\))?: (view (internal|external): )?query(?: \(cache\))? '.*' denied\s*$ - %(__line_prefix)sclient #\S+( \([\S.]+\))?: zone transfer '\S+/AXFR/\w+' denied\s*$ - %(__line_prefix)sclient #\S+( \([\S.]+\))?: bad zone transfer request: '\S+/IN': non-authoritative zone \(NOTAUTH\)\s*$ -# Option: ignoreregex -# Notes.: regex to ignore. If this regex matches, the line is ignored. -# Values: TEXT +# note - (\.\d+)? is a really ugly catch of the microseconds not captured in +# in the date detector # -ignoreregex = +failregex = ^%(__line_prefix)s(\.\d+)?( error:)?\s*client #\S+( \([\S.]+\))?: (view (internal|external): )?query(?: \(cache\))? '.*' denied\s*$ + ^%(__line_prefix)s(\.\d+)?( error:)?\s*client #\S+( \([\S.]+\))?: zone transfer '\S+/AXFR/\w+' denied\s*$ + ^%(__line_prefix)s(\.\d+)?( error:)?\s*client #\S+( \([\S.]+\))?: bad zone transfer request: '\S+/IN': non-authoritative zone \(NOTAUTH\)\s*$ +