# Index name causing issues with \_reindex api

**URL:** <https://discuss.elastic.co/t/index-name-causing-issues-with-reindex-api/172689>\
**Category:** Elasticsearch\
**Created:** [March 17, 2019, 7:09pm UTC](https://discuss.elastic.co/t/index-name-causing-issues-with-reindex-api/172689 "2019-03-17T19:09:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevemw](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@stevemw](https://discuss.elastic.co/u/stevemw)\
**Post date:** [March 17, 2019, 7:09pm UTC](https://discuss.elastic.co/t/index-name-causing-issues-with-reindex-api/172689/1 "2019-03-17T19:09:22Z")

</div>

I am reindexing data from one cluster to another, and I have an index name that I can't get to work via the \_reindex api. the name in question is `%{[@metadata][beat]}-`, which I'm sure is the result of a problem in the logstash/beasts config, however, is anyone aware of a way I can get this data reindexed?

---

<div class="post-metadata">

**Author:** ![mjunaidmuzammil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mjunaidmuzammil/32/56910_2.png) [@mjunaidmuzammil](https://discuss.elastic.co/u/mjunaidmuzammil)\
**Post date:** [March 18, 2019, 8:17am UTC](https://discuss.elastic.co/t/index-name-causing-issues-with-reindex-api/172689/2 "2019-03-18T08:17:40Z")

</div>

What error are you getting here in this case?

---

<div class="post-metadata">

**Author:** ![stevemw](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@stevemw](https://discuss.elastic.co/u/stevemw)\
**Post date:** [March 18, 2019, 3:27pm UTC](https://discuss.elastic.co/t/index-name-causing-issues-with-reindex-api/172689/3 "2019-03-18T15:27:14Z")

</div>

400 Bad Request is all I can trap

---

<div class="post-metadata">

**Author:** ![stevemw](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@stevemw](https://discuss.elastic.co/u/stevemw)\
**Post date:** [March 18, 2019, 4:45pm UTC](https://discuss.elastic.co/t/index-name-causing-issues-with-reindex-api/172689/4 "2019-03-18T16:45:27Z")

</div>

Figured it out...had to use unicode `indexname = "%25%7B%5B%40metadata%5D%5Bbeat%5D%7D-"`

That got it working.

---

<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 15, 2019, 4:45pm UTC](https://discuss.elastic.co/t/index-name-causing-issues-with-reindex-api/172689/5 "2019-04-15T16:45:32Z")

</div>

Closed on April 15, 2019, 4:45pm UTC

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