# Change Name in Stack Monitoring

**URL:** <https://discuss.elastic.co/t/change-name-in-stack-monitoring/312896>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [August 25, 2022, 9:54am UTC](https://discuss.elastic.co/t/change-name-in-stack-monitoring/312896 "2022-08-25T09:54:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomx1](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@tomx1](https://discuss.elastic.co/u/tomx1)\
**Post date:** [August 25, 2022, 9:54am UTC](https://discuss.elastic.co/t/change-name-in-stack-monitoring/312896/1 "2022-08-25T09:54:49Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![tomx1](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@tomx1](https://discuss.elastic.co/u/tomx1)\
**Post date:** [August 31, 2022, 6:51am UTC](https://discuss.elastic.co/t/change-name-in-stack-monitoring/312896/2 "2022-08-31T06:51:41Z")

</div>

still looking for a solution 🙂

---

<div class="post-metadata">

**Author:** ![MichelLaterman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michellaterman/32/110221_2.png) [@MichelLaterman](https://discuss.elastic.co/u/MichelLaterman)\
**Post date:** [September 1, 2022, 7:09pm UTC](https://discuss.elastic.co/t/change-name-in-stack-monitoring/312896/3 "2022-09-01T19:09:52Z")

</div>

Did you restart the beat after changing the local hostname?

---

<div class="post-metadata">

**Author:** ![tomx1](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@tomx1](https://discuss.elastic.co/u/tomx1)\
**Post date:** [September 5, 2022, 5:37am UTC](https://discuss.elastic.co/t/change-name-in-stack-monitoring/312896/4 "2022-09-05T05:37:56Z")

</div>

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](http://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:

```auto
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:~$

```

---

<div class="post-metadata">

**Author:** ![MichelLaterman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michellaterman/32/110221_2.png) [@MichelLaterman](https://discuss.elastic.co/u/MichelLaterman)\
**Post date:** [September 6, 2022, 4:24pm UTC](https://discuss.elastic.co/t/change-name-in-stack-monitoring/312896/5 "2022-09-06T16:24:14Z")

</div>

libbeat uses [os.Hostname()](https://pkg.go.dev/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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 4, 2022, 6:25pm UTC](https://discuss.elastic.co/t/change-name-in-stack-monitoring/312896/6 "2022-10-04T18:25:07Z")

</div>

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