How to customize beat host name or beat name

I am using metricbeat to collect system performance via docker installation. The beat.name and beat.hostname is the b60271bea7a3 which is not readable. Can I customize it via docker-compose file, like
···
environment:
- beat.name=204
- beat.hostname=204
···

You can customise beat.name with the name setting in the configuration file (In the General section). You can't change beat.hostname, so we recommend using beat.name in the dashboards (that's what we do in the Beats dashboards that we provide).

thanks a lot, can I change via docker compose file?

There are multiple options, but I think easiest is to use something like this in docker-compose:

command: metricbeat -e  -E name=myname

See here for more examples.

1 Like

This topic was automatically closed after 21 days. New replies are no longer allowed.