From 32d81e4991dccd600f61fba846fb36e8a211d975 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 28 Dec 2021 19:20:33 +0100 Subject: [PATCH] kibana.stats: extract correct index property (#29622) (#29623) * kibana.stats: extract correct index property * changelog entry (cherry picked from commit 2b23068a87f7ef3cb7469761169476469ab92704) Co-authored-by: Kevin Lacabane --- CHANGELOG.next.asciidoc | 1 + metricbeat/module/kibana/stats/_meta/data.json | 4 ++-- metricbeat/module/kibana/stats/data.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index f06107f472b..1a604de3363 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -101,6 +101,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Use xpack.enabled on SM modules to write into .monitoring indices when using Metricbeat standalone {pull}28365[28365] - Enhance filter check in kubernetes event metricset. {pull}29470[29470] - Fix gcp metrics metricset apply aligner to all metric_types {pull}29514[29513] +- Extract correct index property in kibana.stats metricset {pull}29622[29622] *Packetbeat* diff --git a/metricbeat/module/kibana/stats/_meta/data.json b/metricbeat/module/kibana/stats/_meta/data.json index dde2be30ac3..46e85773eeb 100644 --- a/metricbeat/module/kibana/stats/_meta/data.json +++ b/metricbeat/module/kibana/stats/_meta/data.json @@ -16,7 +16,7 @@ "host": { "name": "0.0.0.0" }, - "index": "b04775fa6831", + "index": ".kibana", "name": "b04775fa6831", "os": { "distro": "CentOS", @@ -88,4 +88,4 @@ "type": "kibana", "version": "7.14.0" } -} \ No newline at end of file +} diff --git a/metricbeat/module/kibana/stats/data.go b/metricbeat/module/kibana/stats/data.go index 79e6454f805..a2148f64e84 100644 --- a/metricbeat/module/kibana/stats/data.go +++ b/metricbeat/module/kibana/stats/data.go @@ -52,7 +52,7 @@ var ( "uuid": c.Str("kibana.uuid"), "name": c.Str("kibana.name"), - "index": c.Str("kibana.name"), + "index": c.Str("kibana.index"), "host": s.Object{ "name": c.Str("kibana.host"), },