# Elasticsearch upgrade from 5.2 to 7.2

**URL:** <https://discuss.elastic.co/t/elasticsearch-upgrade-from-5-2-to-7-2/191392>\
**Category:** Elasticsearch\
**Created:** [July 19, 2019, 12:43pm UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-5-2-to-7-2/191392 "2019-07-19T12:43:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moka](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Moka](https://discuss.elastic.co/u/Moka)\
**Post date:** [July 19, 2019, 12:43pm UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-5-2-to-7-2/191392/1 "2019-07-19T12:43:23Z")

</div>

Hello ,

I'm trying to upgrade elasticsearch cluster from 5.2 to 7.2  
After reading the docs ( correct me if I'm wrong ) , here's what I concluded:

- upgrade from 5.2 to 5.6
- upgrade from 5.6 to 6.x
- upgrade from 6.x to 7.2

Naturally ,every upgrade should be realized on each node of the cluster and then a full cluster restart.( a lot of work )  
My question is the following :  
Should I reindex all index on **each step** on **each node** ( lets say I have 10 nodes )  
How to reindex all my index with one shot ( I have more than 500 index )  
Each index has a different mapping and a different name ( I want to avoid to manually reindex everything)

Best regards ,  
MOKA

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 19, 2019, 2:23pm UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-5-2-to-7-2/191392/2 "2019-07-19T14:23:23Z")

</div>

IMHO the easiest path is to start a new cluster running 7.2 and use the reindex from remote API to read the old data from your 5.2 cluster and reindex in 7.2.

---

<div class="post-metadata">

**Author:** ![Moka](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Moka](https://discuss.elastic.co/u/Moka)\
**Post date:** [July 21, 2019, 8:45pm UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-5-2-to-7-2/191392/3 "2019-07-21T20:45:22Z")

</div>

Thanks for your reply.Thats the quickest most efficient way I think  
So, back to my first question :  
Should I reindex all index **each node** or only on master?  
How to reindex all my indexes without the manual labor ( I have more than 500 indexes)?

---

<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:** [August 18, 2019, 8:59pm UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-5-2-to-7-2/191392/4 "2019-08-18T20:59:56Z")

</div>

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