diff --git a/metricbeat/module/elasticsearch/node_stats/data.go b/metricbeat/module/elasticsearch/node_stats/data.go index 14b03d504e4..1c0e00f9991 100644 --- a/metricbeat/module/elasticsearch/node_stats/data.go +++ b/metricbeat/module/elasticsearch/node_stats/data.go @@ -368,6 +368,12 @@ func eventsMapping(r mb.ReporterV2, m elasticsearch.MetricSetAPI, info elasticse continue } + if transportAddress, hasTransportAddress := node["transport_address"]; hasTransportAddress { + if transportAddress, ok := transportAddress.(string); ok { + event.Host = transportAddress + } + } + roles := node["roles"] event.ModuleFields = mapstr.M{