Migrating Elasticsearch 8.x to OpenSearch

Migration Assistant supports Elasticsearch 8.x as a source for OpenSearch 2.x and 3.x, but some 8.x features have no OpenSearch equivalent. This page covers what maps, what does not, and how the move is sequenced.

On this page

Migrating Elasticsearch 8.x to OpenSearch: what the move involves

A team running Elasticsearch 8.x has to decide whether to move to OpenSearch before its current major line reaches end of support, and the first question is what the move will cost in engineering time. Migration Assistant supports Elasticsearch 8.x as a source for OpenSearch 2.x and 3.x targets, but not 1.x, and the effort depends on which 8.x features the cluster uses. Data movement is the easy part. Features that have no OpenSearch equivalent, security settings, index lifecycle policies, saved dashboards and client code all need their own review before cutover, so the plan should start with an inventory of what the cluster actually does.

The licensing context matters for the business case. Elastic says its default distribution has been under the Elastic License 2.0 since 2021, and it added AGPLv3 as an OSI-approved option, according to Elastic's licensing FAQ. OpenSearch, by contrast, is released under the Apache License, Version 2.0. Elastic's published end-of-life dates set the timing: maintenance for the 8.x line ends on January 15, 2027, and support ends on July 15, 2027, while the current release lines are 9.x. Confirm the dates on Elastic's product end of life page before you set a project deadline, because they are the figures your change calendar will depend on.

Plan for metadata testing and application changes, not only data movement. The OpenSearch documentation recommends testing metadata migration first, because some 8.x features may not have OpenSearch equivalents. Check index templates, mappings, aliases, ingest pipelines, role and user definitions, and client libraries that send queries or rely on response fields. Ask your team to confirm which clients and dashboards are in use, which 8.x features the cluster depends on, and who owns each application that will be retested before cutover.

Which Elasticsearch 8.x capabilities have OpenSearch equivalents

This table compares common Elasticsearch 8.x capabilities with their OpenSearch counterparts and marks each as maps cleanly, maps with changes, or needs a rebuild. Migration Assistant moves some of these items and leaves others, so confirm every row against the current OpenSearch documentation and your own cluster inventory before you plan the cutover.

CapabilityOpenSearch counterpartMigration treatment
Indices and documentsIndices and documents with the same core API modelMaps cleanly. Confirm document counts after backfill.
Mappings and field typesMappings, with some 8.x field types and options needing reviewMaps with changes. Check each field type against the target version.
AliasesIndex aliasesMaps cleanly. Confirm alias targets after cutover.
Index templatesIndex templates, with composable template syntax to verifyMaps with changes. Review template priority and settings by hand.
Ingest pipelinesIngest pipelines, with processor availability to confirmMaps with changes. Test every processor the pipelines call.
Search and aggregationsQuery DSL and aggregations, with some 8.x query types lacking equivalentsMaps with changes. Rewrite and test queries your application depends on.
Security realms and rolesOpenSearch Security plugin identity backends, roles and role mappingsNeeds a rebuild. Security configuration is not moved by Migration Assistant.
Index lifecycle managementIndex State Management policiesNeeds a rebuild. Lifecycle policies must be recreated and tested.
Machine learning, transforms and dense vectorsFeature availability varies, with k-NN vectors for dense vector use casesNeeds a rebuild. Confirm each feature in current docs before planning.

What changes in application code and clients

Application code talks to the cluster through a client library, and that library is the first thing to check. OpenSearch is wire-compatible with Elasticsearch 7.10, not with 8.x, so an application built on the Elasticsearch 8.x client may send requests or expect responses that the target does not handle the same way. Many teams move to a client library maintained for OpenSearch, but the exact pairing of client version and OpenSearch version has to be confirmed against the release you choose, not assumed from the major version number.

  • Client version pinning: Record the exact client version each service uses today and the language runtime it needs.
  • Official OpenSearch clients: Confirm which OpenSearch client exists for your language and which OpenSearch versions it supports.
  • Connection settings: Check node addresses, port, scheme and retry or sniffing behavior, since cluster discovery differs between stacks.
  • Serialization: Test how dates, numeric types and null values are encoded and parsed by the new client.
  • Pilot service: Run one non-critical service against the target before changing the rest.

Confirm client compatibility with your chosen OpenSearch version in writing before any application rebuild starts.

Documented import paths from Elasticsearch 8.x

OpenSearch documents four ways to move data and workloads off Elasticsearch, and the right one depends on the target version, how much downtime you can accept, and how much of the cluster state you need to carry across. Each card below describes one path, what it moves, what stays with your team, and what to confirm in the vendor docs before committing to it.

Migration Assistant with snapshot backfill

Migration Assistant is the documented path for Elasticsearch 8.x sources into OpenSearch 2.x and 3.x targets. It moves index data through a snapshot-based backfill and can migrate metadata, but it does not move every 8.x feature, so the team must review what the tool handles and what it skips. Confirm the supported source and target version pairs in the Migration Assistant docs before sizing the work.

Migration Assistant docs

Live traffic capture for low downtime

Migration Assistant can capture live requests to the source and replay them against the target while backfill runs, which is the documented route to low or zero downtime. The team still owns the cutover plan, client switching and validation of writes that land during the window. Confirm with the vendor docs which request types are captured and replayed, and how write ordering is handled, before promising a downtime window.

Snapshot and restore

Snapshot and restore copies indices from a repository into a target cluster. It is the simplest documented method when the target can read the snapshot format and a write freeze is acceptable. It moves index data only, so mappings, templates, security objects, pipelines and lifecycle policies must be recreated or checked by hand. Confirm the snapshot compatibility between your 8.x source and the target version before choosing it.

Remote reindexing

Remote reindexing pulls documents from the source cluster through its API and writes them into the OpenSearch target. It gives you control over which indices move and lets you transform documents on the way, but throughput depends on network capacity and the source cluster's load. The team owns mapping decisions, field type changes and the verification of document counts. Confirm the remote connection and authentication settings in the OpenSearch migration docs.

Migrate or upgrade docs

Rolling upgrades where the pair allows

Rolling upgrades replace nodes one at a time without a full cluster stop, but OpenSearch documents them for specific source versions, and the documented upgrade base is Elasticsearch 7.10 and earlier within the 6.0 to 7.10 range. An 8.x cluster is not on that path, so this route only applies if the source is a version the docs list as compatible. Confirm the supported version pairs before assuming an in-place move is possible.

Upgrade paths

How a parallel run and cutover work for 8.x clusters

The sequence moves an Elasticsearch 8.x workload to OpenSearch in controlled stages, so each stage has a check that must pass before the next one starts. Source maintenance dates and the cluster's write load shape how long the parallel run can safely last.

  1. Inventory indices, metadata, security and clients

    The team lists every index, alias, index template, ingest pipeline, snapshot repository and lifecycle policy on the 8.x source, along with the security configuration (users, roles, realms and API keys) and every application or agent that calls the cluster. Write volume per index and the query patterns each client uses are recorded alongside. Done means the inventory has an owner for each item and each item is marked as moves, rebuilds or is retired. Confirm the source version and its support dates against Elastic's end-of-life schedule before scheduling work.

  2. Run a pilot on a non-critical index set

    The team chooses a small set of indices with low business impact and runs the full path on them: snapshot or backfill into an OpenSearch 2.x or 3.x target, client connection tests and query comparisons. The pilot exposes mapping conversions, analyzers and query features that behave differently before they touch production data. Done means the pilot indices return agreed results for the query set and the team has a written list of issues with owners and fixes.

  3. Evaluate metadata on the target before data moves

    Metadata testing runs on the OpenSearch target before any document is backfilled. The team reviews index settings, mappings, templates, aliases and pipelines, and records every 8.x feature that has no OpenSearch equivalent, since the Migration Assistant documentation recommends testing metadata first. Done means each unsupported feature has a documented replacement or a decision to drop it, and the target cluster accepts the migrated metadata without errors.

  4. Backfill data and enable live capture where needed

    Migration Assistant restores the source snapshot into the target and reindexes the data as a backfill. Where the workload cannot pause writes, the team enables live traffic capture so requests made during the backfill are recorded and replayed to the target. Done means the backfill reports completion for every index in scope and the captured traffic replay has caught up to the current state of the source.

  5. Compare results during the parallel run

    Both clusters serve the same workload while the team compares document counts per index, aggregation results, sampled query responses and error rates. Differences are traced to mappings, analyzers, scoring or client behavior and fixed before the next comparison. The length of the parallel run depends on the cluster's write load and the validation scope agreed in advance, so the team should set exit criteria up front. Done means every compared index meets the agreed criteria for a full validation cycle.

  6. Cut over clients to the OpenSearch target

    Clients, pipelines and agents switch their endpoints and credentials to the target in a planned change window, with a documented rollback that points them back to the source. Security configuration is rebuilt on the target as part of this step, since it does not move with the data. Done means every client in the inventory is confirmed to read and write against the target, and the source is kept read-only or in standby for the rollback window.

  7. Decommission the 8.x source

    After the rollback window closes, the team takes a final snapshot of the source, removes its nodes and access paths, and updates monitoring, backup jobs and documentation. The retained snapshot is kept under the organization's retention policy. Done means the source no longer receives traffic, the final snapshot has been verified, and the inventory is updated to show the target as the system of record.

How the source, Migration Assistant and target fit during a parallel run

The run starts on the Elasticsearch 8.x source cluster, where snapshots are taken and client requests are captured through a proxy. Migration Assistant restores the snapshot into the OpenSearch target and replays captured traffic so both clusters receive the same writes. Before the client switch, the validation step compares document counts and query results on the two clusters, and the cutover decision point sits after those results are reviewed.

Parallel run data and request flow with the cutover decision point marked.

What drives the cost and duration of the move

This table lists the factors that change how much work the move takes and who pays for it, with a note on what recurs and what to request in a written quote. Read each row as a question to answer about your own cluster before asking for a scope, since most drivers only become visible once the source cluster has been inventoried. The main takeaway is that metadata, security and client changes usually outweigh the data copy itself.

DriverWhy it changes cost or effortWho typically pays and what to request in a quote
Number and size of indicesEach index adds mapping review, backfill time and validation, and large indices lengthen snapshot and backfill windows. Shard counts and index templates multiply the metadata review.Internal staff usually provide the inventory and access. Ask the partner to scope validation per index group and to state how large indices are backfilled.
Count of 8.x-only features in useFeatures without OpenSearch equivalents, such as some ingest processors, ILM behavior or license-gated APIs, each need a replacement or removal decision. Confirm the list against the OpenSearch Migration Assistant documentation.Usually a partner-led assessment, then a shared decision with the owning team. Request a written list of features found, the replacement chosen for each and who approves it.
Security model complexityRealms, roles, role mappings, document-level and field-level security, and API keys are not moved by Migration Assistant, so each one is rebuilt and tested. Single sign-on and audit logging add more work.Often the largest one-time cost for regulated teams, with security staff reviewing the design. Request the mapping from each Elasticsearch role to an OpenSearch role and the test cases for access.
Client applications and query patternsEach application that sends queries, bulk writes or uses client libraries may need changes for API differences or updated clients. Complex aggregations and scripts take more testing than simple match queries.Application teams usually pay for their own code changes, and a partner may run the compatibility tests. Request an inventory of clients with their query types and owners.
Tolerance for write freeze versus live captureA write freeze lets backfill finish without concurrent changes, while live traffic capture needs a proxy, replay and reconciliation. Live capture adds infrastructure and monitoring for the duration of the move.Infrastructure and operations teams carry the proxy and cutover risk. Ask whether the quote covers capture components, replay runs and the cutover runbook.
Validation scopeDocument counts, metadata comparison, query result checks and performance tests each add work. The depth depends on how much the business relies on search results and dashboards.Usually shared, with the business owner defining acceptance criteria. Request the list of checks, the pass criteria and whether retests are included.
Team skills with each platformTeams new to OpenSearch security configuration, snapshot handling or cluster sizing need more guidance and review, which lengthens the work and increases rework risk.A partner may provide training or pair work. Ask what knowledge transfer is included and what runbooks are delivered at the end.
Ongoing operation after cutoverOnce live, OpenSearch versions receive fixes and security patches during maintenance, so patching, upgrades and monitoring recur. Confirm the maintenance window for the target version before signing.Recurring cost sits with the platform owner, internal or retained. Ask for the upgrade plan, the support period for the chosen version and who responds to incidents.

What usually goes wrong in 8.x migrations

Most failed or delayed Elasticsearch 8.x to OpenSearch moves do not fail on data copy. They stall on configuration that did not move, client code that assumed 8.x behavior, and schedules that did not account for source support dates. The cards below cover the risks we see most often, each with a step the team can take before cutover.

Treating data movement as the finish line

Migration Assistant moves indices and documents, but a finished backfill does not mean the cluster is ready to serve. Security configuration, index lifecycle policies, saved dashboards and pipelines are separate work with their own tests. Before the project starts, list every 8.x object type in use and assign each one an owner and a verification step, so data copy is only one line in the plan.

Skipping metadata testing

Some 8.x features may have no OpenSearch equivalent, and the migration documentation recommends testing metadata migration first. Run the metadata step against a representative copy of the source and review every mapping, template and setting it produces. Record each difference, such as a feature that does not carry over, and decide whether it is rebuilt, dropped or accepted before the production run.

Migration Assistant guidance

Underestimating security and role rebuilds

Users, roles, role mappings, API keys and SSO settings are not carried over by the data move, so the target cluster starts with its own access model. Teams often discover this during cutover, when applications fail authentication or analysts lose access to indices. Inventory every 8.x user, role and integration first, then rebuild them in the OpenSearch Security plugin and test each identity path with real accounts.

Client queries that depend on 8.x behavior

Applications built against Elasticsearch 8.x client libraries and query syntax may behave differently on OpenSearch, and deprecated or product-specific calls may fail outright. Start with an inventory of client libraries, query types and any code that parses version-specific responses. Run the application's search and indexing tests against the target cluster in a staging environment, and fix failures before the change window.

Unplanned write windows during backfill

If the plan assumes writes can continue during a snapshot-based backfill without a strategy for changes made in the meantime, the team either loses recent data or freezes writes longer than the business expects. Decide upfront whether the migration will accept a planned write freeze or use live traffic capture, and state the acceptable window with the data owners. Validate document counts on both sides before any cutover decision.

Planning cutover after source support ends

Elastic's published end-of-life dates for the 8.x line are a planning input, not a background detail. A migration that starts late can finish with the source already out of support, which changes the risk profile of the remaining period. Confirm the current support dates on Elastic's end-of-life page at project start, and set the migration schedule backward from the earliest date your organization must be off 8.x.

8.x maintenance ends
January 15, 2027
Elastic end-of-life dates

Questions buyers ask before moving 8.x clusters

What does the effort and cost of moving an Elasticsearch 8.x cluster depend on?

Effort depends mostly on how much of the cluster is data and how much is configuration that the target does not carry over. The main drivers are the number of indices and the size of the data to backfill, the number of client applications that query or write to the cluster, how many 8.x features your mappings and queries use, and how many security roles, ingest pipelines, lifecycle policies and Kibana objects must be rebuilt by hand. Costs fall into two groups: one-time work for assessment, metadata testing, application changes, cutover and validation, and recurring work for running the new cluster, patching and upgrades. Ask any provider for a quote that lists each of these items separately and states which environment will be used for testing.

How long does an 8.x to OpenSearch migration take, and what sets the timeline?

The timeline is set by the inventory and the cutover method, not by the data copy alone. Metadata testing, application changes and validation usually take longer than the backfill itself, and the write freeze or live traffic capture you choose determines how much of the schedule must fit inside agreed change windows. Other factors include the number of client teams that must test, the size of the snapshot repository you must restore from, and whether security and lifecycle configuration must be rebuilt first. Ask for a written schedule tied to the scope, and confirm it against your own change calendar and the target OpenSearch version you select.

What must our team provide before a migration partner can start?

The team should expect to provide the following before work begins:

  • Access to the source cluster and its snapshot repository, plus network paths to the target environment
  • A current inventory of indices, index templates, ingest pipelines, aliases, lifecycle policies and the applications that call the cluster, with an owner for each
  • Representative test data and the queries or dashboards that must keep working
  • Named client owners who can test and sign off on application changes
  • Agreed change windows for the cutover and a rollback decision owner
  • Documented security requirements such as identity provider, TLS and audit logging expectations

Missing items in this list are the most common reasons a fixed-scope plan slips, so confirm each one in the written scope.

Can our internal team migrate an Elasticsearch 8.x cluster without a partner?

An internal team can do the work if it has engineers who know both the Elasticsearch 8.x configuration and the OpenSearch target, time for a test cluster, and capacity to own the cutover. The harder parts are usually not the copy but the surrounding work: finding every client that depends on 8.x behavior, rebuilding security roles and role mappings, converting lifecycle policies, and proving that document counts and query results match. Compare your team's capacity against the inventory and the list of 8.x features in use. A partner is most useful when the same people must also run the source and target during an overlap period.

Do Elastic 8.x end-of-support dates affect our migration planning?

Yes, they should shape the schedule. Elastic's published end-of-life page lists end of maintenance for the 8.x line on January 15, 2027, with 8.x support ending July 15, 2027. Those dates come from Elastic's support page, so confirm them there before you set a deadline. Teams that wait until the last months risk running out of maintenance while still testing applications. Starting metadata testing early leaves room for a second test pass and reduces the pressure of a fixed cutover date.

Does Apache 2.0 licensing mean we need a paid edition for security features?

No paid edition is described in the OpenSearch FAQ, and all OpenSearch project software is released under the Apache License, Version 2.0. The OpenSearch Security plugin provides role-based access control, document-level and field-level security, field masking, audit logs, TLS and several authentication backends, including SAML, OpenID Connect, LDAP and Active Directory. On the Elastic side, single sign-on and field- or document-level security sit in paid tiers, which is one reason teams compare the two. Confirm the exact features you need against the current OpenSearch security documentation and your own compliance requirements before you finalize the design.

What can Migration Assistant not move from an Elasticsearch 8.x cluster?

Migration Assistant moves index data and supports Elasticsearch 8.x as a source for OpenSearch 2.x and 3.x targets, but it does not support 1.x sources. The documentation warns that some 8.x features may not have OpenSearch equivalents and recommends testing metadata migration first. Items that typically need manual rebuilding include security configuration, Kibana saved objects, lifecycle policies and any client code that depends on a specific 8.x API. Confirm the current list of supported and unsupported items against the Migration Assistant documentation for the version you plan to target.

How do we confirm version compatibility and get a reliable quote?

Confirm the source and target versions in the Migration Assistant documentation before you request a quote, because support for 8.x as a source is listed for OpenSearch 2.x and 3.x. Then ask the provider to state which OpenSearch version it will target and why. The quote should follow from a written scope that lists the inventory review, metadata testing, application changes, cutover, validation and handover, with the assumptions behind each item. DeployOpen does not publish a price list. A quote follows from the agreed scope, which is why the inventory step comes first.

How DeployOpen scopes, delivers and supports the migration

DeployOpen plans the move from Elasticsearch 8.x to OpenSearch 2.x or 3.x as a fixed-scope engagement inside your own infrastructure. The work starts with an inventory of what your clusters actually use, so the metadata tests and application changes are agreed in writing before any cutover date is set.

How we scope

  • Inventory of source clusters, indices, plugins, security configuration and client applications that call the Elasticsearch 8.x API
  • Written list of 8.x features with no OpenSearch equivalent, with a decision recorded for each one
  • Agreed target version (2.x or 3.x), migration method and downtime tolerance, confirmed before work starts
  • Scope and deliverables documented in writing, with a retainer option for support after the move

How we build

  • Migration Assistant set up in your environment to run metadata evaluation against the 8.x source
  • Metadata test runs that record which mappings, settings and templates move cleanly and which need manual rework
  • Backfill from snapshot and validation of document counts and index settings on the OpenSearch target
  • Application changes for client libraries, query differences and authentication, tested against the new cluster

How we hand over

  • Written record of the migration decisions, metadata test results and any features left unmigrated
  • Runbook for cutover, rollback and the write freeze or traffic capture window agreed in scope
  • Rebuilt security roles, role mappings and access controls documented for your security team to review
  • Walkthrough with your platform and application teams before the engagement closes

How we support

  • Post-cutover support on the OpenSearch cluster, available as a retainer under a separate written agreement
  • Patching and upgrade planning aligned with the OpenSearch maintenance and release schedule
  • Retesting of application queries and security settings after changes, with findings and fixes reported
  • Clear ownership of open items, so your team knows what it operates and what DeployOpen supports

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.