# Kibana cluster with nginx not working

**URL:** <https://discuss.elastic.co/t/kibana-cluster-with-nginx-not-working/282232>\
**Category:** Kibana\
**Created:** [August 23, 2021, 1:41pm UTC](https://discuss.elastic.co/t/kibana-cluster-with-nginx-not-working/282232 "2021-08-23T13:41:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![selin](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@selin](https://discuss.elastic.co/u/selin)\
**Post date:** [August 23, 2021, 1:41pm UTC](https://discuss.elastic.co/t/kibana-cluster-with-nginx-not-working/282232/1 "2021-08-23T13:41:59Z")

</div>

Hi bro and sis,

I would need to set kibana cluster. Is there any idea how can it be done. A single kibana no issue. But cluster after login i hitting 401 error. I not sure why exactly. I point both kibana to same yaml file. If i access individually no issue. but via nginx having issue.

---

<div class="post-metadata">

**Author:** ![corey.robertson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/corey.robertson/32/54611_2.png) [@corey.robertson](https://discuss.elastic.co/u/corey.robertson)\
**Post date:** [August 23, 2021, 4:17pm UTC](https://discuss.elastic.co/t/kibana-cluster-with-nginx-not-working/282232/2 "2021-08-23T16:17:22Z")

</div>

Hi @selin

If both Kibana instances are using the same .yml file, then that is probably what is causing your issues.

Here is a guide of some steps you will need to take when load balancing across multiple instances [[Load Balancing Kibana]](https://www.elastic.co/guide/en/kibana/current/production.html#load-balancing-kibana)

Let me know if that solves your issues.

---

<div class="post-metadata">

**Author:** ![selin](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@selin](https://discuss.elastic.co/u/selin)\
**Post date:** [August 24, 2021, 1:20am UTC](https://discuss.elastic.co/t/kibana-cluster-with-nginx-not-working/282232/3 "2021-08-24T01:20:45Z")

</div>

hi i saw this but really not sure how can use this in my docker-compose. what is server.uid how it is being configured? where i need use the server uid and name? i using nginx. if need my nginx code i can share. each container hve unique name. i am amble to use both kibana seperately since both using different prot. but when i use nginx, after login hitting 401 error

---

<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:** [September 21, 2021, 1:21am UTC](https://discuss.elastic.co/t/kibana-cluster-with-nginx-not-working/282232/4 "2021-09-21T01:21:00Z")

</div>

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