[metricbeat][filebeat][7.2] host.name wrong value. Bug or wrong set?

Hi guys,
I'm currently working on filebeat (system module enabled) and metricbeat, 7.2v.
I noticed that field host.name which, as Elastic ecs documentation reports, refers to the name of the host, has the same value of agent.name field (take a look at the attached screenshots). This will not let infrastructure gui to work properly because gui artifact data are splitted accordingly to the host.name field.

Metricbeat

Filebeat

It that a bug or a wrong set? NB: no particual changes have been performed on both .yml config files (only changed their name, eg. name: "METRICBEAT-${HOSTNAME}")
Thanks,

Andrea

can you share a config snippet mentioned?

They are both available here

Thanks