# Reindexing Data

**URL:** <https://discuss.elastic.co/t/reindexing-data/193608>\
**Category:** Logstash\
**Created:** [August 2, 2019, 6:40pm UTC](https://discuss.elastic.co/t/reindexing-data/193608 "2019-08-02T18:40:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [August 2, 2019, 6:40pm UTC](https://discuss.elastic.co/t/reindexing-data/193608/1 "2019-08-02T18:40:05Z")

</div>

I have about 300 indices of data, each of them consumining anywhere from a few hundred MBs to a couple tens of GBs. I'd like to reindex all of the data into rollup indices to reduce the number of indices mounted, which from my understanding would improve performance. In addition, I'd like to make some modifications to the index template to remove some unneccessary fields and properly index fields as an IP or bool instead of strings as they currently are.

I currently ingest the data from log files using Logstash and utilize ILM policies to control rollover and merging. One day after the files are ingested, they are moved to another folder and compressed into a .zip file for archival purposes.

What would be the best way, both in terms of speed and efficiency to go about reindexing the data?

1. Delete the currently indexed data, decompress my archived log files, and have logstash reingest it.
2. Create another logstash pipeline that would pull the indexed data and reprocess it and reindex it into a different location?

---

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [August 6, 2019, 2:27pm UTC](https://discuss.elastic.co/t/reindexing-data/193608/2 "2019-08-06T14:27:39Z")

</div>

Anyone?

---

<div class="post-metadata">

**Author:** ![Sommerdal](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@Sommerdal](https://discuss.elastic.co/u/Sommerdal)\
**Post date:** [August 9, 2019, 12:22pm UTC](https://discuss.elastic.co/t/reindexing-data/193608/3 "2019-08-09T12:22:39Z")

</div>

I would reccomend to download Curator and use the reindex API.  
Take a look and se if it solves your problem.

[https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.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:** [September 6, 2019, 12:22pm UTC](https://discuss.elastic.co/t/reindexing-data/193608/4 "2019-09-06T12:22:53Z")

</div>

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