Change Name in Stack Monitoring

By default, beats which are sending monitoring data to a dedicated monitoring cluster (by setting 'monitoring.elasticsearch.monitoring.enabled: true') are showing up in Kibana Stack Monitoring with their hostname without FQDN.
I want that they show up with their full hostname as reported by linux command 'hostname -f', tried a few things without success, any hints how to achive this?

still looking for a solution :slightly_smiling_face:

Did you restart the beat after changing the local hostname?

I have not changed the hostname, why should I? The information is already here, I just want that my hosts are showing up as "hostname.example.com" instead of just "hostname"

This is an example for a correct debian hostname config. Packetbeat should give a way to use short or full name:

user@hostname:~$ hostname
hostname
user@hostname:~$
user@hostname:~$ hostname -f
hostname.example.com
user@hostname:~$
user@hostname:~$ cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       hostname.example.com  hostname

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
user@hostname:~$
user@hostname:~$
user@hostname:~$ cat /etc/hostname
hostname
user@hostname:~$

libbeat uses os.Hostname() internally to get the name if one is not specified in the config. IIRC you can specify another name with the name attribute

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