# Hostname environment variable not working in Kibana 6.7.0

**URL:** <https://discuss.elastic.co/t/hostname-environment-variable-not-working-in-kibana-6-7-0/175464>\
**Category:** Kibana\
**Created:** [April 4, 2019, 6:24pm UTC](https://discuss.elastic.co/t/hostname-environment-variable-not-working-in-kibana-6-7-0/175464 "2019-04-04T18:24:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnwobu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dnwobu/32/43517_2.png) [@dnwobu](https://discuss.elastic.co/u/dnwobu)\
**Post date:** [April 4, 2019, 6:24pm UTC](https://discuss.elastic.co/t/hostname-environment-variable-not-working-in-kibana-6-7-0/175464/1 "2019-04-04T18:24:17Z")

</div>

I'm trying to start the kibana service on a CentOS 7 system but the ${HOSTNAME} environment variable isn't being recognized by the service:

server.name: {HOSTNAME} server.host: {HOSTNAME}

When I start the service via systemctl, the service fails and the following lines appears in journalctl:  
This text will be hidden  
Apr 04 13:06:28

> **Summary**
>
> es-master01

kibana[23654]: FATAL CLI ERROR Error: Unknown environment variable referenced in conf  
ig : HOSTNAME

Is there an issue with how I am entering the data in the yml file or something I need to do on my system?

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [April 4, 2019, 8:00pm UTC](https://discuss.elastic.co/t/hostname-environment-variable-not-working-in-kibana-6-7-0/175464/2 "2019-04-04T20:00:57Z")

</div>

Hello [dnwobu](https://discuss.elastic.co/u/dnwobu)[Dilim Nwobu](https://discuss.elastic.co/u/dnwobu)

Could you share the relevant portion of your kibana.yml config file?

---

<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:** [May 2, 2019, 8:01pm UTC](https://discuss.elastic.co/t/hostname-environment-variable-not-working-in-kibana-6-7-0/175464/3 "2019-05-02T20:01:03Z")

</div>

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