From e362c3380cfa8c1cf46d2f0ddcfa27020d5ceffc Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Thu, 23 May 2019 21:59:02 -0700 Subject: [PATCH 1/2] Only log error (don't also index it) if xpack is enabled. Indexing it would index it into metricbeat-* indices instead of .monitoring-* indices, which are currently not equipped to handle error documents. --- metricbeat/module/kibana/stats/stats.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/metricbeat/module/kibana/stats/stats.go b/metricbeat/module/kibana/stats/stats.go index a8a4228c7481..ec38802ad0ad 100644 --- a/metricbeat/module/kibana/stats/stats.go +++ b/metricbeat/module/kibana/stats/stats.go @@ -132,6 +132,10 @@ func (m *MetricSet) Fetch(r mb.ReporterV2) error { err := m.fetchStats(r, now) if err != nil { + if m.XPackEnabled { + m.Logger().Error(err) + return nil + } return err } From 1e3ac44750cfc6456a04704b8fc5ce8b24cfbf4a Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Thu, 23 May 2019 22:08:19 -0700 Subject: [PATCH 2/2] Adding CHANGELOG entry --- CHANGELOG.next.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index ace63d069bf8..b050def550f7 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -128,6 +128,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Fix direction of incoming IPv6 sockets. {pull}12248[12248] - Validate that kibana/status metricset cannot be used when xpack is enabled. {pull}12264[12264] - Ignore prometheus metrics when their values are NaN or Inf. {pull}12084[12084] {issue}10849[10849] +- In the kibana/stats metricset, only log error (don't also index it) if xpack is enabled. {pull}12265[12265] *Packetbeat*