# Migration from OpenSearch2.5 to Elasticsearch8.8.1

**URL:** <https://discuss.elastic.co/t/migration-from-opensearch2-5-to-elasticsearch8-8-1/336491>\
**Category:** Elasticsearch\
**Tags:** docker, migration\
**Created:** [June 20, 2023, 2:26pm UTC](https://discuss.elastic.co/t/migration-from-opensearch2-5-to-elasticsearch8-8-1/336491 "2023-06-20T14:26:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tatsuya](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@tatsuya](https://discuss.elastic.co/u/tatsuya)\
**Post date:** [June 20, 2023, 2:26pm UTC](https://discuss.elastic.co/t/migration-from-opensearch2-5-to-elasticsearch8-8-1/336491/1 "2023-06-20T14:26:55Z")

</div>

Hello.  
I'm thinking of migrating from AWS OpenSearch to Elastic Cloud.  
First, I launched Elasticsearch 8.8.1 locally with docker and checked if the data could be migrated.

Data migration experimented with Snapshot & Restore.

As a result, as shown below, the version of OpenSearch is too large and an error occurs if there is no compatibility.

```auto
the snapshot was created with Elasticsearch version [36.26.78] which is higher than the version of this node [8.8.1]

```

As far as I can see from the error message, is it impossible to migrate data with Snapshot & Restore?

- from: OpenSearch 2.5
- to: Elasticsearch 8.8.1(docker local)
- storage: AWS S3

---

<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:** [June 20, 2023, 2:26pm UTC](https://discuss.elastic.co/t/migration-from-opensearch2-5-to-elasticsearch8-8-1/336491/2 "2023-06-20T14:26:56Z")

</div>

OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [June 20, 2023, 2:31pm UTC](https://discuss.elastic.co/t/migration-from-opensearch2-5-to-elasticsearch8-8-1/336491/3 "2023-06-20T14:31:16Z")

</div>

You can't restore a snapshot created in OpenSearch on a Elasticsearch cluster.

If you want to migrate the data from Opensearch to Elasticsearch you will need to use something like Logstash for example that will query your Opensearch cluster and index the data in your Elasticsearch cluster.

---

<div class="post-metadata">

**Author:** ![tatsuya](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@tatsuya](https://discuss.elastic.co/u/tatsuya)\
**Post date:** [June 20, 2023, 2:42pm UTC](https://discuss.elastic.co/t/migration-from-opensearch2-5-to-elasticsearch8-8-1/336491/4 "2023-06-20T14:42:47Z")

</div>

Thank you for your response.  
I understand that it is not possible to restore from OpenSearch.  
I would like to explore the option of using Logstash or similar tools to migrate the data.

---

<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:** [June 21, 2023, 3:55am UTC](https://discuss.elastic.co/t/migration-from-opensearch2-5-to-elasticsearch8-8-1/336491/5 "2023-06-21T03:55:13Z")

</div>

A remote reindex should work as well.

---

<div class="post-metadata">

**Author:** ![tatsuya](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@tatsuya](https://discuss.elastic.co/u/tatsuya)\
**Post date:** [June 24, 2023, 8:09am UTC](https://discuss.elastic.co/t/migration-from-opensearch2-5-to-elasticsearch8-8-1/336491/6 "2023-06-24T08:09:42Z")

</div>

After experimenting with Docker, I successfully achieved the desired results with remote reindexing!  
I will try it next using Elastic Cloud.

Thank you!

---

<div class="post-metadata">

**Author:** ![gaurav\_jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gaurav_jain/32/123032_2.png) [@gaurav\_jain](https://discuss.elastic.co/u/gaurav_jain)\
**Post date:** [July 5, 2023, 7:38am UTC](https://discuss.elastic.co/t/migration-from-opensearch2-5-to-elasticsearch8-8-1/336491/7 "2023-07-05T07:38:30Z")

</div>

> [@warkolm](#):
>
> should

Hi ,

I was also trying to migrate data using remote re-indexing from AWS Opensearch 1.3 to ElasticCloud 7.17 but facing below error

```auto
{
        "type" : "status_exception",
        "reason" : "body={\"error\":{\"root_cause\":[{\"type\":\"illegal_argument_exception\",\"reason\":\"No search type for [scan]\"}],\"type\":\"illegal_argument_exception\",\"reason\":\"No search type for [scan]\"},\"status\":400}"
 }

```

I am new to Elasticsearch so not much idea what could be wrong.  
Any suggestions here what could be wrong and how i can achieve migration?

---

<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 5, 2023, 7:53am UTC](https://discuss.elastic.co/t/migration-from-opensearch2-5-to-elasticsearch8-8-1/336491/8 "2023-07-05T07:53:13Z")

</div>

Welcome!

Could you describe exactly what command you are running and where?  
Could you also open a new topic on this problem as the previous one have been solved. 🙂

---

<div class="post-metadata">

**Author:** ![gaurav\_jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gaurav_jain/32/123032_2.png) [@gaurav\_jain](https://discuss.elastic.co/u/gaurav_jain)\
**Post date:** [July 6, 2023, 12:57pm UTC](https://discuss.elastic.co/t/migration-from-opensearch2-5-to-elasticsearch8-8-1/336491/9 "2023-07-06T12:57:41Z")

</div>

Hi @dadoonet

Thanks for your response.

I have opened a new topic with full description

> [@Exception while attempting Migration from AWS OSS 1.3 to Elasticsearch 7.17](https://discuss.elastic.co/t/exception-while-attempting-migration-from-aws-oss-1-3-to-elasticsearch-7-17/337797):
>
> Hello. We are planning to migrate existing elastic cluster from AWS opensearch service 1.1 to Elastic Cloud: 7.17 with some indexes of ~50GB in size First, I launched an elastic cloud cluster : 7.17. Data migration experimented with Snapshot & Restore. [Aws - Elastic Cloud migration doc](https://www.elastic.co/blog/migrating-from-aws-elasticsearch-to-elasticsearch-service-on-elastic-cloud) As a result, as shown below, the version of OpenSearch is too large and an error occurs if there is no compatibility. the snapshot was created with Elasticsearch version [35.24.80-beta2] which is higher tha…

---

<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 3, 2023, 12:58pm UTC](https://discuss.elastic.co/t/migration-from-opensearch2-5-to-elasticsearch8-8-1/336491/10 "2023-08-03T12:58:41Z")

</div>

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