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

Thanks!

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

https://www.elastic.co/guide/en/beats/metricbeat/current/add-fields.html

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