# Can you set Kibana server name to same as the machine hostname?

**URL:** <https://discuss.elastic.co/t/can-you-set-kibana-server-name-to-same-as-the-machine-hostname/124038>\
**Category:** Kibana\
**Created:** [March 15, 2018, 7:37am UTC](https://discuss.elastic.co/t/can-you-set-kibana-server-name-to-same-as-the-machine-hostname/124038 "2018-03-15T07:37:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![szymon](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@szymon](https://discuss.elastic.co/u/szymon)\
**Post date:** [March 15, 2018, 7:37am UTC](https://discuss.elastic.co/t/can-you-set-kibana-server-name-to-same-as-the-machine-hostname/124038/1 "2018-03-15T07:37:45Z")

</div>

Hello,  
i'd like to set Kibana server name to machine hostname, similarly to ES:

> [@Can you set ES node name to same as the machine hostname?](https://discuss.elastic.co/t/can-you-set-es-node-name-to-same-as-the-machine-hostname/900):
>
> Is it possible to use environment variables or similar to automatically set an Elasticsearch node name to the hostname of the machine? i.e. if a machine is called ES1, the ES node name would also be ES1 without having to configure it in elasticsearch.yml manually?

so in my kibana.yml i added:  
`server.name: ${HOSTNAME}`  
but it doesn't work, as a server name Kibana set a literal "${HOSTNAME}".  
Is there another way to do this?  
Thanks in advance,  
Szymon

---

<div class="post-metadata">

**Author:** ![Bill\_McConaghy](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@Bill\_McConaghy](https://discuss.elastic.co/u/Bill_McConaghy)\
**Post date:** [March 15, 2018, 1:40pm UTC](https://discuss.elastic.co/t/can-you-set-kibana-server-name-to-same-as-the-machine-hostname/124038/2 "2018-03-15T13:40:51Z")

</div>

Unfortunately, the ability to use variable interpolation in kibana.yml is not available. For now, you will have to hardcode the hostname in the configuration.

---

<div class="post-metadata">

**Author:** ![szymon](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@szymon](https://discuss.elastic.co/u/szymon)\
**Post date:** [March 15, 2018, 2:00pm UTC](https://discuss.elastic.co/t/can-you-set-kibana-server-name-to-same-as-the-machine-hostname/124038/3 "2018-03-15T14:00:02Z")

</div>

Ok, thank you for your answer. Is there any chances this functionality will be added in future releases?

---

<div class="post-metadata">

**Author:** ![Bill\_McConaghy](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@Bill\_McConaghy](https://discuss.elastic.co/u/Bill_McConaghy)\
**Post date:** [March 15, 2018, 2:05pm UTC](https://discuss.elastic.co/t/can-you-set-kibana-server-name-to-same-as-the-machine-hostname/124038/4 "2018-03-15T14:05:47Z")

</div>

AFAIK, it is not on the roadmap. I would suggest opening an issue about it in the Kibana Github repo.

---

<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:** [April 12, 2018, 2:05pm UTC](https://discuss.elastic.co/t/can-you-set-kibana-server-name-to-same-as-the-machine-hostname/124038/5 "2018-04-12T14:05:50Z")

</div>

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