# Reindex from Remote not working

**URL:** <https://discuss.elastic.co/t/reindex-from-remote-not-working/306532>\
**Category:** Elasticsearch\
**Created:** [June 7, 2022, 7:15am UTC](https://discuss.elastic.co/t/reindex-from-remote-not-working/306532 "2022-06-07T07:15:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bit\_Addict](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bit_addict/32/106708_2.png) [@Bit\_Addict](https://discuss.elastic.co/u/Bit_Addict)\
**Post date:** [June 7, 2022, 7:15am UTC](https://discuss.elastic.co/t/reindex-from-remote-not-working/306532/1 "2022-06-07T07:15:13Z")

</div>

Hi,

I am trying to migrate all watchers from one cluster to another (both on 7.9.2) using the "Reindex from remote" feature, but it looks like the reindex is not picking up any documents.

```auto
POST _reindex
{
  "source": {
    "remote": {
      "host": "oldhost",
      "username": "xxxxx",
      "password": "xxxxx"
    },
    "index": ".watches",
    "query": {
      "match": {
        "test": "data"
      }
    }
  },
  "dest": {
    "index": "my_test_index"
  }
}

```

I whitelisted all datanodes from the old cluster, but for this test I just used one of the old datanodes.

With the above POST, I get this result:

```auto
{
  "took" : 21,
  "timed_out" : false,
  "total" : 0,
  "updated" : 0,
  "created" : 0,
  "deleted" : 0,
  "batches" : 0,
  "version_conflicts" : 0,
  "noops" : 0,
  "retries" : {
    "bulk" : 0,
    "search" : 0
  },
  "throttled_millis" : 0,
  "requests_per_second" : -1.0,
  "throttled_until_millis" : 0,
  "failures" : []
}

```

Any idea what the issue is? I found a similar problem where the type field was the problem, but using this is deprecated in 7.9.2.

Any help is appreciated!

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 7, 2022, 7:17am UTC](https://discuss.elastic.co/t/reindex-from-remote-not-working/306532/2 "2022-06-07T07:17:01Z")

</div>

Does your query match things if you run that in Dev Tools?

> [@Bit\_Addict](#):
>
> both on 7.9.2

Please be aware that 7.9 is [EOL](https://www.elastic.co/support/eol) 🙂

---

<div class="post-metadata">

**Author:** ![Bit\_Addict](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bit_addict/32/106708_2.png) [@Bit\_Addict](https://discuss.elastic.co/u/Bit_Addict)\
**Post date:** [June 7, 2022, 7:39am UTC](https://discuss.elastic.co/t/reindex-from-remote-not-working/306532/3 "2022-06-07T07:39:31Z")

</div>

I made a little progress here. I delete the query part.

```auto
POST _reindex
{
  "source": {
    "remote": {
      "host": "oldhost",
      "username": "xxxxx",
      "password": "xxxxx"
    },
    "index": ".watches",
     },
  "dest": {
    "index": "my_test_index"
  }
}

```

And now get this result:

```auto
{
  "took" : 15,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 273,
      "relation" : "eq"
    },
    "max_score" : 1.0

```

But this is not the correct amount, there should be way more watchers.

* * *

Oh, does EOL mean that you guys are not allowed to help on this issue anymore?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 8, 2022, 4:04am UTC](https://discuss.elastic.co/t/reindex-from-remote-not-working/306532/4 "2022-06-08T04:04:40Z")

</div>

> [@Bit\_Addict](#):
>
> Oh, does EOL mean that you guys are not allowed to help on this issue anymore?

It means if you find a problem the best path is to first upgrade, then try again.

---

<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 6, 2022, 4:05am UTC](https://discuss.elastic.co/t/reindex-from-remote-not-working/306532/5 "2022-07-06T04:05:36Z")

</div>

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