# Using tribe node for federation between Elasticsearch clusters

**URL:** <https://discuss.elastic.co/t/using-tribe-node-for-federation-between-elasticsearch-clusters/37952>\
**Category:** Elasticsearch\
**Created:** [December 24, 2015, 5:36pm UTC](https://discuss.elastic.co/t/using-tribe-node-for-federation-between-elasticsearch-clusters/37952 "2015-12-24T17:36:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chinmoyd](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@chinmoyd](https://discuss.elastic.co/u/chinmoyd)\
**Post date:** [December 24, 2015, 5:36pm UTC](https://discuss.elastic.co/t/using-tribe-node-for-federation-between-elasticsearch-clusters/37952/1 "2015-12-24T17:36:59Z")

</div>

I have two elastic search clusters ( distributed in two physical sites ). These clusters are working fine with logstash and kibana individually. For now, I am trying to replicate this in a single machine. Each of the clusters is having single elasticsearch nodes. I need to provide a view from Kibana that will consider the data from both the sites.

Seeing the documentation of tribe nodes, it appears to me that tribe can help me to achieve the objective, without replication of data between the sites. I want to avoid the data replication across sites(different clusters), to get rid of the network overhead. My tribe node configuration in elasticsearch.yml is as below:

```
t1:
    cluster.name: cluster1
    discovery.zen.ping.multicast.enabled: false
    discovery.zen.ping.unicast.hosts: ["localhost:9201"]
t2:
    cluster.name: cluster2
    discovery.zen.ping.multicast.enabled: false
    discovery.zen.ping.unicast.hosts: ["localhost:9202"]

```

In host1 and host2 elasticsearch.ymls, I have un-commented only the following lines:  
For 1st elasticsearch

```
cluster.name: cluster1
node.name: node-1
http.port: 9201

```

For 2nd elasticsearch

```
cluster.name: cluster2
node.name: node-2
http.port: 9202

```

When I use Kibana with the tribe node, it does not show any result. Am I missing anything?

Strangely the console of the tribe node shows a reference to port 9302 as below, Not sure how it is getting reference to 9302:

`[2015-12-24 23:04:26,481][INFO][transport] [Bova] publish_address {127.0.0.1:9302}, bound_addresses {127.0.0.1:9302}, {[::1]:9302}`

---

<div class="post-metadata">

**Author:** ![tinle](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@tinle](https://discuss.elastic.co/u/tinle)\
**Post date:** [December 24, 2015, 7:28pm UTC](https://discuss.elastic.co/t/using-tribe-node-for-federation-between-elasticsearch-clusters/37952/2 "2015-12-24T19:28:23Z")

</div>

Is this a test setup? Do you have other ES instances running that host?

Your tribe config is pointing to two local clusters on that same host. Where t1 is pointing to localhost:9201 and t2 is to localhost:9202

If this is **NOT** a test setup and you are actually configuring a real tribe to talk with your remote clusters, you need to put in their actual FQDN name or IP addresses and correct port.

What version of ES are you using? There are various issues with tribe depending on which version 😃

---

<div class="post-metadata">

**Author:** ![chinmoyd](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@chinmoyd](https://discuss.elastic.co/u/chinmoyd)\
**Post date:** [December 25, 2015, 6:04am UTC](https://discuss.elastic.co/t/using-tribe-node-for-federation-between-elasticsearch-clusters/37952/3 "2015-12-25T06:04:59Z")

</div>

I am using elasticsearch 2.1.1, logstash 2.1.1, kibana 4.3.1 (64 bit version ).

This is a test setup where I am trying to set up tribe in my local, then I shall apply in different boxes. At present I am using two instances of ES as different clusters, and one as the tribe.

---

<div class="post-metadata">

**Author:** ![tinle](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@tinle](https://discuss.elastic.co/u/tinle)\
**Post date:** [December 25, 2015, 8:35pm UTC](https://discuss.elastic.co/t/using-tribe-node-for-federation-between-elasticsearch-clusters/37952/4 "2015-12-25T20:35:43Z")

</div>

Are your two test instances healthy? Do they have any data in them?

The tribe node is a client node, so it will talk with other clusters over ES port 9300. You should change your config to use 9301 and 9302 for t1 and t2.

---

<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:** [July 5, 2017, 11:28pm UTC](https://discuss.elastic.co/t/using-tribe-node-for-federation-between-elasticsearch-clusters/37952/5 "2017-07-05T23:28:35Z")

</div>


