# Migration from 5.x to 8.x

**URL:** <https://discuss.elastic.co/t/migration-from-5-x-to-8-x/372772>\
**Category:** Elasticsearch\
**Created:** [January 3, 2025, 9:34pm UTC](https://discuss.elastic.co/t/migration-from-5-x-to-8-x/372772 "2025-01-03T21:34:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kri](https://avatars.discourse-cdn.com/v4/letter/k/53a042/32.png) [@kri](https://discuss.elastic.co/u/kri)\
**Post date:** [January 3, 2025, 9:34pm UTC](https://discuss.elastic.co/t/migration-from-5-x-to-8-x/372772/1 "2025-01-03T21:34:01Z")

</div>

I am new here, I am trying to migrate from elastic 5.x to 8.x. I have a couple indexes including parent child relation as well.can anyone provide guidance on where to start ? I have created separate indexes from exisitng ones with more than one type.

Thank you in advance.

---

<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:** [January 3, 2025, 9:58pm UTC](https://discuss.elastic.co/t/migration-from-5-x-to-8-x/372772/2 "2025-01-03T21:58:40Z")

</div>

Welcome!

Parent/child has been replaced by the join field type. See

> **[Join field type | Elasticsearch Guide \[8.17\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/parent-join.html)**

HTH

---

<div class="post-metadata">

**Author:** ![Musab\_Dogan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/musab_dogan/32/70691_2.png) [@Musab\_Dogan](https://discuss.elastic.co/u/Musab_Dogan)\
**Post date:** [January 5, 2025, 3:27pm UTC](https://discuss.elastic.co/t/migration-from-5-x-to-8-x/372772/3 "2025-01-05T15:27:57Z")

</div>

Here is the official upgrade doc: [Upgrade Elasticsearch | Elasticsearch Guide [7.17] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/setup-upgrade.html)

You have two options in here:

1. Upgrade one major version at once. Eg, Upgrade from 5.x to 6.8, reindex all the indices. Upgrade from 6.8 to 7.17.26, reindex all the indices and upgrade to 8.x.
2. Use Logstash or create a third party ingest pipeline that can read from the old elasticsearch and index into the new elasticsearch.

Note: For rolling upgrades between major versions (e.g., 5.6 to 6.8), it's recommend using the [Kibana Upgrade Assistant](https://www.elastic.co/guide/en/kibana/7.17/upgrade-assistant.html).
