# Monitoring multiple kibana instances

**URL:** <https://discuss.elastic.co/t/monitoring-multiple-kibana-instances/122554>\
**Category:** Kibana\
**Created:** [March 5, 2018, 3:27pm UTC](https://discuss.elastic.co/t/monitoring-multiple-kibana-instances/122554 "2018-03-05T15:27:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alepuccetti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alepuccetti/32/20174_2.png) [@alepuccetti](https://discuss.elastic.co/u/alepuccetti)\
**Post date:** [March 5, 2018, 3:27pm UTC](https://discuss.elastic.co/t/monitoring-multiple-kibana-instances/122554/1 "2018-03-05T15:27:48Z")

</div>

Hi everyone,

I have a production cluster (version 5.6.4) and a separate monitoring cluster (version 6.2). I noticed that if I enter in the monitoring section and select the production cluster i the Kibana section I see only one instance when I have multiple of them.  
I deploy kibana with docker and publish a different port for each one but keeping the internal port the standard one. Also, each kibana has a different index e.g. .kibana-name).  
When I take down the showed kibana instance, another one of the running kibana instances showed up (only one). If I repeat it than a 3rd one shows up. I noticed that the Kibana instances are selected in alphabetic order.

I guess that the issue could be that the monitoring code use a dictionary and the key is (IP:PORT) which in my case is the same for each instance.

Is there a setting to fix this or is it a bug in monitoring?

Best Regards,

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [March 6, 2018, 12:16am UTC](https://discuss.elastic.co/t/monitoring-multiple-kibana-instances/122554/2 "2018-03-06T00:16:10Z")

</div>

> [@alepuccetti](#):
>
> I see only one instance when I have multiple of them.

> [@alepuccetti](#):
>
> the monitoring code use a dictionary and the key is (IP:PORT) which in my case is the same for each instance.

You're close. The Kibana listing in the Monitoring UI uses the Kibana server UUID as the term that it aggregates on. When multiple instances show as one, it's usually because the Kibana package was copied to other hosts after the `data/uuid` file was generated, and all of the instances are using the same UUID.

To remedy the issue, just delete the `data/uuid` file for each instance. Historical data for these instances will be gone, but will start getting collected correctly after restarting the Kibana servers.

Here's an example of what a uuid file looks like on one of my Kibana installations:

```auto
$ cat data/uuid
e09c3c56-7e82-4ac9-9dbe-b270881396e3

```

---

<div class="post-metadata">

**Author:** ![alepuccetti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alepuccetti/32/20174_2.png) [@alepuccetti](https://discuss.elastic.co/u/alepuccetti)\
**Post date:** [March 6, 2018, 10:36am UTC](https://discuss.elastic.co/t/monitoring-multiple-kibana-instances/122554/3 "2018-03-06T10:36:45Z")

</div>

Thanks Tim for the explanation, this clear things up. However, the bigger issue remains.

I deploy using docker multiple kibana instances to the same host, so as soon I redeploy this issue will come back again.  
Do I have to regenerate the UUID everytime I do a deployment?

I do not understand why the UUID is the same in each container, is it computed from the (IP:PORT) tuple? if so, would not be better to consider also the name?

Cheers,

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [March 7, 2018, 5:21pm UTC](https://discuss.elastic.co/t/monitoring-multiple-kibana-instances/122554/4 "2018-03-07T17:21:00Z")

</div>

Are you building the docker container or using ours from [docker.elastic.co](http://docker.elastic.co)? The container should not contain the `data/uuid` file, and a new one will be generated when the container starts up.

---

<div class="post-metadata">

**Author:** ![alepuccetti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alepuccetti/32/20174_2.png) [@alepuccetti](https://discuss.elastic.co/u/alepuccetti)\
**Post date:** [March 8, 2018, 10:19am UTC](https://discuss.elastic.co/t/monitoring-multiple-kibana-instances/122554/5 "2018-03-08T10:19:27Z")

</div>

Hi,

Actually, I am building my image based on the official one (FROM [docker.elastic.co/kibana/kibana:5.6.4](http://docker.elastic.co/kibana/kibana:5.6.4)) I guess that the fact that I run `kibana 2>$1 | grep -m 1 "Optimization of .* complete"` so that the image is already optimized it is the cause of the UUID equal for every instance.

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![alepuccetti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alepuccetti/32/20174_2.png) [@alepuccetti](https://discuss.elastic.co/u/alepuccetti)\
**Post date:** [March 8, 2018, 11:28am UTC](https://discuss.elastic.co/t/monitoring-multiple-kibana-instances/122554/6 "2018-03-08T11:28:41Z")

</div>

Just for completion, adding `RUN rm data/uuid` at the end of my dockerfile solved the problem. In this case, every time a new container is created a new UUID is generated when kibana starts.

---

<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 5, 2018, 11:28am UTC](https://discuss.elastic.co/t/monitoring-multiple-kibana-instances/122554/7 "2018-04-05T11:28:44Z")

</div>

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