# Reindex fails in Kibana DevTools Console, but succeeds on command line using curl

**URL:** <https://discuss.elastic.co/t/reindex-fails-in-kibana-devtools-console-but-succeeds-on-command-line-using-curl/237266>\
**Category:** Kibana\
**Created:** [June 16, 2020, 9:16am UTC](https://discuss.elastic.co/t/reindex-fails-in-kibana-devtools-console-but-succeeds-on-command-line-using-curl/237266 "2020-06-16T09:16:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![leprovokateur](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@leprovokateur](https://discuss.elastic.co/u/leprovokateur)\
**Post date:** [June 16, 2020, 9:16am UTC](https://discuss.elastic.co/t/reindex-fails-in-kibana-devtools-console-but-succeeds-on-command-line-using-curl/237266/1 "2020-06-16T09:16:08Z")

</div>

Hi,

I want to reindex a couple of indices into a single one. This fails in Kibana DevTools Console, but succeeds using cURL on the command line.

Kibana DevTools Console returns:

```auto
  "error" : {
    "root_cause" : [
      {
        "type" : "parse_exception",
        "reason" : "request body is required"
      }
    ],
    "type" : "parse_exception",
    "reason" : "request body is required"
  },
  "status" : 400
}

```

cURL succeeds:

```auto
$ curl -XPOST "http://192.168.96.178:9200/_reindex" -H 'Content-Type: application/json' -d'{ "source": { "index": "winlogbeat-*-2020.05.*" }, "dest": { "index": "winlogbeat-2020-05" }}'
{"took":229860,"timed_out":false,"total":309582,"updated":0,"created":309582,"deleted":0,"batches":310,"version_conflicts":0,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1.0,"throttled_until_millis":0,"failures":[]}

```

The stack is in version 7.7.1, the indices were created with version 7.7.0.

Best regards,  
Robert

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [June 16, 2020, 5:56pm UTC](https://discuss.elastic.co/t/reindex-fails-in-kibana-devtools-console-but-succeeds-on-command-line-using-curl/237266/2 "2020-06-16T17:56:33Z")

</div>

What content do you have in the dev console?

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![leprovokateur](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@leprovokateur](https://discuss.elastic.co/u/leprovokateur)\
**Post date:** [June 17, 2020, 8:50am UTC](https://discuss.elastic.co/t/reindex-fails-in-kibana-devtools-console-but-succeeds-on-command-line-using-curl/237266/3 "2020-06-17T08:50:47Z")

</div>

Hi,

I have the following in the Dev Console:

```auto
POST _reindex
{
  "source": {
    "index": "winlogbeat-*-2020.05.*"
  },
  "dest": {
    "index": "winlogbeat-2020-05"
  }
}

```

The cURL command is generated from this.

Best regards,  
Robert

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [June 18, 2020, 3:18pm UTC](https://discuss.elastic.co/t/reindex-fails-in-kibana-devtools-console-but-succeeds-on-command-line-using-curl/237266/4 "2020-06-18T15:18:06Z")

</div>

The error indicates that the server didn't receive the request body. Can you look in the browser console to inspect the request to see if this is accurate? It might be helpful to create a har file while attempting this.

---

<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 16, 2020, 3:18pm UTC](https://discuss.elastic.co/t/reindex-fails-in-kibana-devtools-console-but-succeeds-on-command-line-using-curl/237266/5 "2020-07-16T15:18:07Z")

</div>

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