From aa81428da88dedfee810cb0bdec1351490412f21 Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Mon, 29 Apr 2019 03:41:14 -0700 Subject: [PATCH] Remove cluster_name from cluster_state field (#11954) --- metricbeat/module/elasticsearch/cluster_stats/data_xpack.go | 1 + 1 file changed, 1 insertion(+) diff --git a/metricbeat/module/elasticsearch/cluster_stats/data_xpack.go b/metricbeat/module/elasticsearch/cluster_stats/data_xpack.go index ea72162c6bd..fa3e5a251aa 100644 --- a/metricbeat/module/elasticsearch/cluster_stats/data_xpack.go +++ b/metricbeat/module/elasticsearch/cluster_stats/data_xpack.go @@ -182,6 +182,7 @@ func eventMappingXPack(r mb.ReporterV2, m *MetricSet, info elasticsearch.Info, c if err != nil { return errors.Wrap(err, "failed to get cluster state from Elasticsearch") } + clusterState.Delete("cluster_name") if err = elasticsearch.PassThruField("status", clusterStats, clusterState); err != nil { return errors.Wrap(err, "failed to pass through status field")