From 6cb4e2f0219839a6cf9a175cc254680acf16f3e8 Mon Sep 17 00:00:00 2001 From: ycz008 Date: Wed, 27 Sep 2023 14:59:04 +0800 Subject: [PATCH] update logstash --- dev-upgrade/elastic/logstash.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-upgrade/elastic/logstash.yml b/dev-upgrade/elastic/logstash.yml index d4da17f..fe3d36f 100644 --- a/dev-upgrade/elastic/logstash.yml +++ b/dev-upgrade/elastic/logstash.yml @@ -18,7 +18,7 @@ data: } mutate { split => { "log.file.path" => "/" } - add_field => { "env" => "%{[hostlog.file.path][2]}" } + add_field => { "env" => "%{[log.file.path][2]}" } } }