Currently we have libbeat adding host.name before the global add_host_metadata processor is executed:
https://github.com/elastic/beats/blob/master/libbeat/publisher/processing/default.go#L337
We should move adding host.name into add_host_metadata in the future. Each module should also add their own host.name fields instead relying on add_host_metadata processor if possible.
Currently we have libbeat adding
host.namebefore the globaladd_host_metadataprocessor is executed:https://github.com/elastic/beats/blob/master/libbeat/publisher/processing/default.go#L337
We should move adding
host.nameintoadd_host_metadatain the future. Each module should also add their ownhost.namefields instead relying onadd_host_metadataprocessor if possible.