# Reindexing in elasticsearch

**URL:** <https://discuss.elastic.co/t/reindexing-in-elasticsearch/260323>\
**Category:** Elasticsearch\
**Created:** [January 6, 2021, 10:27am UTC](https://discuss.elastic.co/t/reindexing-in-elasticsearch/260323 "2021-01-06T10:27:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tahseen\_fatima](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tahseen_fatima/32/67789_2.png) [@tahseen\_fatima](https://discuss.elastic.co/u/tahseen_fatima)\
**Post date:** [January 6, 2021, 10:27am UTC](https://discuss.elastic.co/t/reindexing-in-elasticsearch/260323/1 "2021-01-06T10:27:39Z")

</div>

Hi,

I have a setup of ELK7.10v.  
I want to reindex my data with multiple indices on monthly basis.  
example: My existing index should create new\_index with monthly basis.

I have index1 which contains 1 year of records, and wants to sperate those 1 year records by creating monthly basis index using the log timestamp.

> example:  
> my\_new\_index-2021-01  
> my\_new\_index-2021-02  
> my\_new\_index-2021-03  
> my\_new\_index-2021-04

Kindly suggest, what will be the steps for doing this.

Regards,  
Tahseen

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 6, 2021, 8:36pm UTC](https://discuss.elastic.co/t/reindexing-in-elasticsearch/260323/2 "2021-01-06T20:36:37Z")

</div>

You will need to use the reindex API and then add a query to only get data from each month - [https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-reindex.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-reindex.html)

---

<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:** [February 3, 2021, 8:36pm UTC](https://discuss.elastic.co/t/reindexing-in-elasticsearch/260323/3 "2021-02-03T20:36:53Z")

</div>

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