# Help with Securing Kibana

**URL:** <https://discuss.elastic.co/t/help-with-securing-kibana/143216>\
**Category:** Kibana\
**Created:** [August 6, 2018, 8:14pm UTC](https://discuss.elastic.co/t/help-with-securing-kibana/143216 "2018-08-06T20:14:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [August 6, 2018, 8:31pm UTC](https://discuss.elastic.co/t/help-with-securing-kibana/143216/2 "2018-08-06T20:31:20Z")

</div>

You might find this reply helpful re: env variables and kibana.yml:

> [@How to set custom env variable in kibana.yml](https://discuss.elastic.co/t/how-to-set-custom-env-variable-in-kibana-yml/79855):
>
> I need to assign server.host and elasticsearch.url our custom env varible this is my env variable MY\_IP. I need to assign this variable has a serverhost and elasticsearch.url , so i tried below way kibana.yml user\_dir: &docker\_ip ${MY\_IP} server.host: "%{\*docker\_ip}" elasticsearch.url: "http://%{\*docker\_ip}:9200" its not working for me, Suggest me how to set our custom env varible to kibana configuration.

---

_[View the full topic](https://discuss.elastic.co/t/help-with-securing-kibana/143216)._
