Skip to content

Commit

Permalink
[kibana module] write to rootfields instead of modulefields (#29494)
Browse files Browse the repository at this point in the history
  • Loading branch information
klacabane authored Dec 17, 2021
1 parent b0d35a3 commit c428cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metricbeat/module/kibana/stats/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func eventMapping(r mb.ReporterV2, content []byte, isXpack bool) error {
event.Error = elastic.MakeErrorForMissingField("cluster_uuid", elastic.Kibana)
return event.Error
}
event.ModuleFields.Put("elasticsearch.cluster.id", elasticsearchClusterID)
event.RootFields.Put("elasticsearch.cluster.id", elasticsearchClusterID)

// Set service ID
uuid, err := dataFields.GetValue("uuid")
Expand Down

0 comments on commit c428cb1

Please sign in to comment.