# Cross cluster search giving 504

**URL:** <https://discuss.elastic.co/t/cross-cluster-search-giving-504/132486>\
**Category:** Elasticsearch\
**Created:** [May 18, 2018, 12:04pm UTC](https://discuss.elastic.co/t/cross-cluster-search-giving-504/132486 "2018-05-18T12:04:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattiDeGrauwe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattidegrauwe/32/31373_2.png) [@MattiDeGrauwe](https://discuss.elastic.co/u/MattiDeGrauwe)\
**Post date:** [May 18, 2018, 12:05pm UTC](https://discuss.elastic.co/t/cross-cluster-search-giving-504/132486/1 "2018-05-18T12:05:00Z")

</div>

Hi,

I would like kibana to cross search between 2 nodes:

1 being on the IP x.x.x.214  
other one being on the IP x.x.x.215.

I've set up my configuration and the clustersetings return the following:

```auto
GET /_cluster/settings?pretty
{
  "persistent": {
    "search": {
      "remote": {
        "slave": {
          "seeds": [
            "x.x.x.215:9200"
          ]
        },
        "master": {
          "seeds": [
            "x.x.x.214:9200"
          ]
        }
      }
    }
  },
  "transient": {}
}

```

However, when I try to get my remote seeds I get the following:

```auto
GET /_remote/info?pretty
{
  "slave": {
    "seeds": [],
    "http_addresses": [],
    "connected": false,
    "num_nodes_connected": 0,
    "max_connections_per_cluster": 3,
    "initial_connect_timeout": "30s",
    "skip_unavailable": false
  },
  "master": {
    "seeds": [],
    "http_addresses": [],
    "connected": false,
    "num_nodes_connected": 0,
    "max_connections_per_cluster": 3,
    "initial_connect_timeout": "30s",
    "skip_unavailable": false
  }
}

```

What am I doing wrong?

Kind regards

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 18, 2018, 12:11pm UTC](https://discuss.elastic.co/t/cross-cluster-search-giving-504/132486/2 "2018-05-18T12:11:35Z")

</div>

Cross-cluster search uses the internal transport protocol, so you should specify port `9300`, not `9200` (which is the HTTP port).

---

<div class="post-metadata">

**Author:** ![MattiDeGrauwe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattidegrauwe/32/31373_2.png) [@MattiDeGrauwe](https://discuss.elastic.co/u/MattiDeGrauwe)\
**Post date:** [May 18, 2018, 12:19pm UTC](https://discuss.elastic.co/t/cross-cluster-search-giving-504/132486/3 "2018-05-18T12:19:22Z")

</div>

Hi Christian, thank you for your quick response.

I did correct this on the master node by using the following API:

```auto
PUT _cluster/settings
{
  "persistent": {
    "search": {
      "remote": {
        "master": {
          "seeds": [
            "x.x.x.114:9300"
          ]
        },
        "slave": {
          "seeds": [
            "x.x.x.115:9300"
          ]
        }}
    }
  }
}

```

I'm still not receiving the expected results however.

```auto
GET _remote/info
{
  "slave": {
    "seeds": [],
    "http_addresses": [],
    "connected": false,
    "num_nodes_connected": 0,
    "max_connections_per_cluster": 3,
    "initial_connect_timeout": "30s",
    "skip_unavailable": false
  },
  "master": {
    "seeds": [],
    "http_addresses": [],
    "connected": false,
    "num_nodes_connected": 0,
    "max_connections_per_cluster": 3,
    "initial_connect_timeout": "30s",
    "skip_unavailable": false
  }
}

```

Kind regards,  
Matti

---

<div class="post-metadata">

**Author:** ![MattiDeGrauwe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattidegrauwe/32/31373_2.png) [@MattiDeGrauwe](https://discuss.elastic.co/u/MattiDeGrauwe)\
**Post date:** [May 18, 2018, 1:50pm UTC](https://discuss.elastic.co/t/cross-cluster-search-giving-504/132486/4 "2018-05-18T13:50:02Z")

</div>

Seems like the following command did the trick:

```auto
PUT _cluster/settings
{
 "persistent": {
   "search.remote.slave.seeds": ["x.x.x.215:9300"]
 }
}

```

---

<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:** [June 15, 2018, 1:50pm UTC](https://discuss.elastic.co/t/cross-cluster-search-giving-504/132486/5 "2018-06-15T13:50:09Z")

</div>

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