Possible to override beat.hostname in local metricbeat


(Steffen Winther Sørensen) #1

I wondered if I could override default value of beat.hostname in metricbeat.yml as I have classing short hostnames?


(ruflin) #2

Hostname can't be overwritten but you can overwrite beat.name (in the config under name ) for this purpose.


(Steffen Winther Sørensen) #3

Yes already done that, it's just because we use hostname in a grafana template :slight_smile:


(ruflin) #4

Hehe, what about changing the Grafana template? :innocent:


(Steffen Winther Sørensen) #5

Also changed Grafana template to use beat.name, but as events already are parsing through logstash also changed hostnames by:

mutate {
  replace => { '[beat][hostname]' => "%{[beat][name]}" }
}

:slight_smile:


(system) #6

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