Override host.name for remote modules

I am configuring Metricbeat to fetch some stats from a remote HAProxy server.
This way HAProxy metrics are sent to Elasticsearch with the host.name of the local Metricbeat server and not of the host.name from the remote HAProxy server.

I am wondering if I can override the host.name or host.hostname variables so that:

  • system metrics are forwarded with the host.name of the local Metricbeat host
  • HAProxy metrics are formwarded with the host.name of the remote HAProxy server, configuring it somewhere


Maybe you can use a processor to set the target server:


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.