# Elastic 5.4.0 adding cluster for remote search

**URL:** <https://discuss.elastic.co/t/elastic-5-4-0-adding-cluster-for-remote-search/174720>\
**Category:** Elasticsearch\
**Tags:** ccs-cross-cluster-search\
**Created:** [April 1, 2019, 6:58am UTC](https://discuss.elastic.co/t/elastic-5-4-0-adding-cluster-for-remote-search/174720 "2019-04-01T06:58:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![srirama](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@srirama](https://discuss.elastic.co/u/srirama)\
**Post date:** [April 1, 2019, 6:58am UTC](https://discuss.elastic.co/t/elastic-5-4-0-adding-cluster-for-remote-search/174720/1 "2019-04-01T06:58:40Z")

</div>

Hi,

Initially I set up two clusters (by name "nc3" and "new-cluster2") and each is having two nodes. The cross cluster search worked from one cluster "nc3" to "new-cluster2". From both Kibana and REST API.

But when send the cross cluster search from "new-cluster2" to "nc3". This was working in Kibana and not working via REST API.

Then i tried clearing the cluster setting for remote search and try to configure them again. It was not successful. I got the error as not dynamically updateable.

After checking this [https://stackoverflow.com/questions/33520384/elasticsearch-how-to-delete-a-cluster-setting](https://stackoverflow.com/questions/33520384/elasticsearch-how-to-delete-a-cluster-setting), I deleted the entries manually renamed "/var/lib/elasticsearch/nodes/0/\_state" and restarted the elastic-search service.

Now, when trying to register the remote cluster for search is throwing the error as `"reason": "persistent setting [search.remote.new-cluster2.0], not dynamically updateable"`

Below is the response from elastic:

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "remote_transport_exception",
        "reason": "[node-2][10.0.21.92:9300][cluster:admin/settings/update]"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "persistent setting [search.remote.new-cluster2.0], not dynamically updateable"
  },
  "status": 400
}

```

Does this related to some elastic-search data folder permissions issue?

Pl. help me , thanks in advance.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [April 1, 2019, 8:10am UTC](https://discuss.elastic.co/t/elastic-5-4-0-adding-cluster-for-remote-search/174720/2 "2019-04-01T08:10:52Z")

</div>

> [@srirama](#):
>
> I deleted the entries manually renamed "/var/lib/elasticsearch/nodes/0/\_state"

This is an absolutely terrible idea. If you haven't lost data this time then you were very lucky. Don't mess around inside the data folder like that.

> [@srirama](#):
>
> `persistent setting [search.remote.new-cluster2.0], not dynamically updateable`

Are you calling the remote cluster `new-cluster2.0`? I don't think you can have a `.` in the cluster name.

---

<div class="post-metadata">

**Author:** ![srirama](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@srirama](https://discuss.elastic.co/u/srirama)\
**Post date:** [April 1, 2019, 8:27am UTC](https://discuss.elastic.co/t/elastic-5-4-0-adding-cluster-for-remote-search/174720/3 "2019-04-01T08:27:19Z")

</div>

Hi @DavidTurner

This is local development servers. Hence I worked on the data folder of ELK.

Yes there was one typo mistake in the cluster settings and corrected the same now the clusters are configured for the remote search properly as below.

```auto
GET http://172.25.24.96:9200/_remote/info?pretty

HTTP/1.1 200 OK
content-type: application/json; charset=UTF-8
transfer-encoding: chunked

{
  "new-cluster2": {
    "seeds": [
      "172.25.24.87:9300"
    ],
    "http_addresses": [
      "10.0.22.59:9200",
      "10.0.22.30:9200"
    ],
    "connected": true,
    "num_nodes_connected": 2,
    "max_connections_per_cluster": 3,
    "initial_connect_timeout": "30s"
  },
  "nc3": {
    "seeds": [
      "172.25.25.247:9300"
    ],
    "http_addresses": [
      "10.0.22.43:9200",
      "10.0.21.92:9200"
    ],
    "connected": true,
    "num_nodes_connected": 2,
    "max_connections_per_cluster": 3,
    "initial_connect_timeout": "30s"
  }
}

```

However the initial problem of search requests from cluster "nc3" are working correctly. Not from the other cluster "new-cluster2".

If search request is submitted via the Kibana to new-cluster2 (requested the information of "nc3") it is working.

---

<div class="post-metadata">

**Author:** ![srirama](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@srirama](https://discuss.elastic.co/u/srirama)\
**Post date:** [April 1, 2019, 10:34am UTC](https://discuss.elastic.co/t/elastic-5-4-0-adding-cluster-for-remote-search/174720/4 "2019-04-01T10:34:31Z")

</div>

Hi @DavidTurner

Thanks for the replies.

It was problem in my search string via my application.

Pl. close this discussion.

---

<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 29, 2019, 10:34am UTC](https://discuss.elastic.co/t/elastic-5-4-0-adding-cluster-for-remote-search/174720/5 "2019-04-29T10:34:39Z")

</div>

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