# 2 instances of Elastic and Kibana but data is shared

**URL:** <https://discuss.elastic.co/t/2-instances-of-elastic-and-kibana-but-data-is-shared/95603>\
**Category:** Elasticsearch\
**Created:** [August 2, 2017, 7:15pm UTC](https://discuss.elastic.co/t/2-instances-of-elastic-and-kibana-but-data-is-shared/95603 "2017-08-02T19:15:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erezinho](https://avatars.discourse-cdn.com/v4/letter/e/f07891/32.png) [@Erezinho](https://discuss.elastic.co/u/Erezinho)\
**Post date:** [August 2, 2017, 7:15pm UTC](https://discuss.elastic.co/t/2-instances-of-elastic-and-kibana-but-data-is-shared/95603/1 "2017-08-02T19:15:24Z")

</div>

Hello,

I have a vm with two instances of Elastic, on different folders. Each instance has its own port.  
Same goes to the two Kibana instances.  
ElasticA-KibanaA  
ElasticB-KibanaB.

My client uses both elastic instances, depending on the execution context.  
The index has the same name _runner_.

Now, once I access KibanaA, sets the index and define a dashboard, it affects also KibanaB i.e. it's like the data is shared between the two elastic instances while is should be different.

using different machines will of course work but I'm trying to avoid that.  
What do I miss here ?  
Any better way to allow the separation of data ?

Thanks!

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [August 2, 2017, 7:33pm UTC](https://discuss.elastic.co/t/2-instances-of-elastic-and-kibana-but-data-is-shared/95603/2 "2017-08-02T19:33:30Z")

</div>

If the two Elasticsearch nodes are in different clusters, they don't share data. I would recheck your configuration and make sure they haven't joined together to create a single cluster.

---

<div class="post-metadata">

**Author:** ![Erezinho](https://avatars.discourse-cdn.com/v4/letter/e/f07891/32.png) [@Erezinho](https://discuss.elastic.co/u/Erezinho)\
**Post date:** [August 2, 2017, 7:39pm UTC](https://discuss.elastic.co/t/2-instances-of-elastic-and-kibana-but-data-is-shared/95603/3 "2017-08-02T19:39:53Z")

</div>

Thanks.  
How do I check that?  
Can you direct me to any reference regarding this?

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [August 2, 2017, 7:42pm UTC](https://discuss.elastic.co/t/2-instances-of-elastic-and-kibana-but-data-is-shared/95603/4 "2017-08-02T19:42:04Z")

</div>

The simplest way would be to call the Cluster Health API from either node: [https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html)

If that health returns saying there are two nodes in the cluster, they have joined together. Otherwise, executing it against both nodes will show only one node in each cluster.

How did you configure the nodes? This is something that is configured in the `elasticsearch.yml` file, so you should know if they are sharing the same cluster name, or using each other's IP addresses in the unicast list, etc.

---

<div class="post-metadata">

**Author:** ![Erezinho](https://avatars.discourse-cdn.com/v4/letter/e/f07891/32.png) [@Erezinho](https://discuss.elastic.co/u/Erezinho)\
**Post date:** [August 3, 2017, 9:29am UTC](https://discuss.elastic.co/t/2-instances-of-elastic-and-kibana-but-data-is-shared/95603/5 "2017-08-03T09:29:33Z")

</div>

That helped me to find & solve the problem. Thanks!

So the clusters were joined together.

For those who'll find this topic relevant - here's how I solved it:  
Open `elasticsearch.yml`, remove the comment from _[cluster.name](http://cluster.name):_ and supply a unique name  
Repeat for the other instance of elastic.  
Restart each elastic.  
Re-check the cluster Health and make sure each one has 1 node (and also the cluster name is as you set it).

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [August 3, 2017, 1:33pm UTC](https://discuss.elastic.co/t/2-instances-of-elastic-and-kibana-but-data-is-shared/95603/6 "2017-08-03T13:33:05Z")

</div>

Awesome, glad you got it resolved 🙂

---

<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:** [August 31, 2017, 1:33pm UTC](https://discuss.elastic.co/t/2-instances-of-elastic-and-kibana-but-data-is-shared/95603/7 "2017-08-31T13:33:33Z")

</div>

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