From 70b51a73d3a0029394dbdbc9f52a4d3d8e89d6f5 Mon Sep 17 00:00:00 2001 From: Ondřej Benkovský Date: Fri, 9 Jul 2021 16:23:02 +0200 Subject: add configurable log level to errors plugin (#4718) Automatically submitted. --- plugin/errors/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugin/errors/README.md') diff --git a/plugin/errors/README.md b/plugin/errors/README.md index 61ed582cb..4a8ff3ce8 100644 --- a/plugin/errors/README.md +++ b/plugin/errors/README.md @@ -22,12 +22,12 @@ Extra knobs are available with an expanded syntax: ~~~ errors { - consolidate DURATION REGEXP + consolidate DURATION REGEXP [LEVEL] } ~~~ -Option `consolidate` allows collecting several error messages matching the regular expression **REGEXP** during **DURATION**. After the **DURATION** since receiving the first such message, the consolidated message will be printed to standard output, e.g. - +Option `consolidate` allows collecting several error messages matching the regular expression **REGEXP** during **DURATION**. After the **DURATION** since receiving the first such message, the consolidated message will be printed to standard output with +log level, which is configurable by optional option **LEVEL**. Supported options for **LEVEL** option are `warn`,`error`,`info` and `debug`. ~~~ 2 errors like '^read udp .* i/o timeout$' occurred in last 30s ~~~ @@ -53,7 +53,7 @@ Use the *forward* to resolve queries via 8.8.8.8 and print consolidated error me . { forward . 8.8.8.8 errors { - consolidate 5m ".* i/o timeout$" + consolidate 5m ".* i/o timeout$" warn consolidate 30s "^Failed to .+" } } -- cgit v1.2.3