diff options
author | 2021-07-09 16:23:02 +0200 | |
---|---|---|
committer | 2021-07-09 14:23:02 +0000 | |
commit | 70b51a73d3a0029394dbdbc9f52a4d3d8e89d6f5 (patch) | |
tree | 9bd9362cdda53be3d3e56b4a76a59b8331b5ef21 /plugin/errors/README.md | |
parent | a6a7e738136cf09950dcdf880fe12ea9e14e3afc (diff) | |
download | coredns-70b51a73d3a0029394dbdbc9f52a4d3d8e89d6f5.tar.gz coredns-70b51a73d3a0029394dbdbc9f52a4d3d8e89d6f5.tar.zst coredns-70b51a73d3a0029394dbdbc9f52a4d3d8e89d6f5.zip |
add configurable log level to errors plugin (#4718)
Automatically submitted.
Diffstat (limited to 'plugin/errors/README.md')
-rw-r--r-- | plugin/errors/README.md | 8 |
1 files changed, 4 insertions, 4 deletions
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 .+" } } |