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")