Elastic Security - "merge" logs after hostname rename

Hello,

I use Fleet and Security on a Elasticsearch and Kibana dashboard. I received logs for a period of time from a hostname "X", for which I would like to change its name now to "Y". Doing this would generate two hostnames ("X" and "Y") in the dashboard filters, for example, even though the data refers to the same host. "X" appears to stop sending data at the moment when "Y" starts to send it - obviously.

I was not able to find and clean solution to create something like an alias, or to "rewrite" the previous ones in order to have the same continuity of the data ...

  • Latest versions of Elastic, Kibana, and Elastic-agent running in the environment

Any ideas would be welcomed.