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

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:

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

cURL succeeds:

$ 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

What content do you have in the dev console?

Thanks,
Matt

Hi,

I have the following in the Dev Console:

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

The cURL command is generated from this.

Best regards,
Robert

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.

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