From fb5f5f958477eb3004e75c6e3573b6b6c1dbf2be Mon Sep 17 00:00:00 2001 From: sihoran Date: Thu, 6 Jul 2023 19:31:14 +0100 Subject: [PATCH 1/2] Replaced double quotes with single quotes Using double quotes produces the error `[record accessor] syntax error, unexpected end of file, expecting STRING or INTEGER at '$kubernetes['` Signed-off-by: sihoran --- pipeline/outputs/elasticsearch.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipeline/outputs/elasticsearch.md b/pipeline/outputs/elasticsearch.md index 534fa203f..302908088 100644 --- a/pipeline/outputs/elasticsearch.md +++ b/pipeline/outputs/elasticsearch.md @@ -250,8 +250,8 @@ The following snippet demonstrates using the namespace name as extracted by the Match * # ... Logstash_Prefix logstash - Logstash_Prefix_Key $kubernetes["namespace_name"] + Logstash_Prefix_Key $kubernetes['namespace_name'] # ... ``` -For records that do nor have the field `kubernetes.namespace_name`, the default prefix, `logstash` will be used. \ No newline at end of file +For records that do nor have the field `kubernetes.namespace_name`, the default prefix, `logstash` will be used. From 327d9bff82f6ba41213e8153ee6dbd382983132d Mon Sep 17 00:00:00 2001 From: esmerel <6818907+esmerel@users.noreply.github.com> Date: Wed, 23 Oct 2024 11:42:55 -0700 Subject: [PATCH 2/2] Update pipeline/outputs/elasticsearch.md Co-authored-by: Pat Signed-off-by: esmerel <6818907+esmerel@users.noreply.github.com> --- pipeline/outputs/elasticsearch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/outputs/elasticsearch.md b/pipeline/outputs/elasticsearch.md index 302908088..bd9efd6b0 100644 --- a/pipeline/outputs/elasticsearch.md +++ b/pipeline/outputs/elasticsearch.md @@ -254,4 +254,4 @@ The following snippet demonstrates using the namespace name as extracted by the # ... ``` -For records that do nor have the field `kubernetes.namespace_name`, the default prefix, `logstash` will be used. +For records that do not have the field `kubernetes.namespace_name`, the default prefix, `logstash` will be used.