# Remote reindexing time based indices

**URL:** https://discuss.elastic.co/t/remote-reindexing-time-based-indices/80055
**Category:** Elasticsearch
**Created:** [March 26, 2017, 9:30pm UTC](https://discuss.elastic.co/t/remote-reindexing-time-based-indices/80055 "2017-03-26T21:30:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![faxm0dem](https://avatars.discourse-cdn.com/v4/letter/f/c77e96/32.png) [@faxm0dem](https://discuss.elastic.co/u/faxm0dem)
#### Post date: [March 26, 2017, 9:30pm UTC](https://discuss.elastic.co/t/remote-reindexing-time-based-indices/80055/1 "2017-03-26T21:30:55Z")

</div>

Hi,

I'm reindexing from a remote 1.7.3 cluster to a 5.2.0 one.  
I'd like to reindex all time based indices, without having to do it one at a time.  
I tried the example from the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html#_reindex_daily_indices) and it works perfectly. However, I'd like to keep the same index name, so I simply tried removing the `+ '-1'` from the script. Doing so does not work, and the new index name is `metricbeat` instead of `metricbeat-2016.05.02`. I also tried to simply use this script: `"inline": "ctx._index = ctx._index"` which has the same effect.

Any idea on how I could solve this?

---

<div class="post-metadata">

### Author: ![faxm0dem](https://avatars.discourse-cdn.com/v4/letter/f/c77e96/32.png) [@faxm0dem](https://discuss.elastic.co/u/faxm0dem)
#### Post date: [March 30, 2017, 2:05pm UTC](https://discuss.elastic.co/t/remote-reindexing-time-based-indices/80055/2 "2017-03-30T14:05:39Z")

</div>

Is the problem maybe that there is a sanity check that detects index\_name is the same in source and destination?

---

<div class="post-metadata">

### Author: ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)
#### Post date: [April 11, 2017, 4:36pm UTC](https://discuss.elastic.co/t/remote-reindexing-time-based-indices/80055/3 "2017-04-11T16:36:48Z")

</div>

I'm planning on adding this functionality into Curator 5.1.

---

<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: [May 9, 2017, 4:50pm UTC](https://discuss.elastic.co/t/remote-reindexing-time-based-indices/80055/4 "2017-05-09T16:50:02Z")

</div>

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