# ES upgrade from 5.6 to 8.7

**URL:** <https://discuss.elastic.co/t/es-upgrade-from-5-6-to-8-7/329568>\
**Category:** Elasticsearch\
**Created:** [April 7, 2023, 3:58am UTC](https://discuss.elastic.co/t/es-upgrade-from-5-6-to-8-7/329568 "2023-04-07T03:58:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![salimtb](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@salimtb](https://discuss.elastic.co/u/salimtb)\
**Post date:** [April 7, 2023, 3:58am UTC](https://discuss.elastic.co/t/es-upgrade-from-5-6-to-8-7/329568/1 "2023-04-07T03:58:04Z")

</div>

Hi All,

I am planning to upgrade the Elasticsearch from 5.6 to 8.7, I wanted to seek suggestions to see if it is a good idea to go directly from 5.6 to 8.7, or do a roll upgrade, application is built on Django and uses PostgreSQL for database.

Regards,  
Salim

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 7, 2023, 4:54am UTC](https://discuss.elastic.co/t/es-upgrade-from-5-6-to-8-7/329568/2 "2023-04-07T04:54:58Z")

</div>

The only way to do a direct update would be to reindex your data into a new cluster running the new version. Upgrading in place would require you to upgrade one major version at a time (5.6 to 6.8 to 7.17 to 8.7) and run the migration assistant and reindex the data at each version. When making this kind of large jump it is often easier to create a new cluster with new config and mappings (a lot has changed between versions) and then reindex the data from the existing cluster. You probably also need to change or upgrade client libraries so downtime will be required.

---

<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 5, 2023, 4:55am UTC](https://discuss.elastic.co/t/es-upgrade-from-5-6-to-8-7/329568/3 "2023-05-05T04:55:35Z")

</div>

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