# Using reindex api from kibana fails, but works from curl

**URL:** <https://discuss.elastic.co/t/using-reindex-api-from-kibana-fails-but-works-from-curl/225660>\
**Category:** Elasticsearch\
**Created:** [March 30, 2020, 10:56am UTC](https://discuss.elastic.co/t/using-reindex-api-from-kibana-fails-but-works-from-curl/225660 "2020-03-30T10:56:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Norman\_Khine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/norman_khine/32/3342_2.png) [@Norman\_Khine](https://discuss.elastic.co/u/Norman_Khine)\
**Post date:** [March 30, 2020, 10:56am UTC](https://discuss.elastic.co/t/using-reindex-api-from-kibana-fails-but-works-from-curl/225660/1 "2020-03-30T10:56:26Z")

</div>

Hello,  
A bit of strange issue which I am unclear as to why it could happen, it is related to [Merge multiple indices in one](https://discuss.elastic.co/t/merge-multiple-indices-in-one/220543)

Currently I have a single index where I am reindexing this into a new index using the kibana tools UI, this fails, with `mapper [network.latency] cannot be changed from type` error and the reindex stops, but if I send a curl command from my terminal like:

```auto
curl -XPOST "http://elasticsearch:9200/_reindex?requests_per_second=115&wait_for_completion=true" -H 'Content-Type: application/json' -d'
{
  "source": {
    "index": "analytics-prod-2019.12.30",
    "size": 1000
  },
  "dest": {
    "index": "analytics-prod-2019.12"
  },
  "script": {
    "lang": "painless",   
    "source": " ctx._source.index = ctx._index;\n def eventData = ctx._source[\"event.data\"];\n if (eventData != null) {\n eventData.remove(\"realmDb.size\");\n eventData.remove(\"realmDb.format\");\n eventData.remove(\"realmDb.contents\");\n }"
  }
}'

```

the index is fully reindexed!

the only thing I don't have in the curl is `"conflicts": "proceed",`

what am i missing?

any advice is much appreciated

---

<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 27, 2020, 10:56am UTC](https://discuss.elastic.co/t/using-reindex-api-from-kibana-fails-but-works-from-curl/225660/2 "2020-04-27T10:56:27Z")

</div>

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