From fd6a7f0967c6394cd46f8f19ec25982beb2a75a6 Mon Sep 17 00:00:00 2001 From: Takuro Ashie Date: Wed, 7 Sep 2022 18:45:06 +0900 Subject: [PATCH] in_tail: Fix the value format of match parameter in section It should be regexp *in string* because config parser parses hash params as JSON. Signed-off-by: Takuro Ashie --- input/tail.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/input/tail.md b/input/tail.md index a6e3b321..71284c2a 100644 --- a/input/tail.md +++ b/input/tail.md @@ -416,8 +416,8 @@ Example: match { - namespace: /shopping/, - podname: /frontend/, + "namespace": "/shopping/", + "podname": "/frontend/", } limit 1000 @@ -464,9 +464,9 @@ Grouping rules for log files. | type | default | version | | :--- | :--- | :--- | -| hash | {"namespace": /./, "podname": /./} | 1.15 | +| hash | {"namespace": "/./", "podname": "/./"} | 1.15 | -`match` parameter is used to check if a file belongs to a particular group based on hash keys (named captures from `pattern`) and hash values (regexp) +`match` parameter is used to check if a file belongs to a particular group based on hash keys (named captures from `pattern`) and hash values (regexp in string) ##### limit