Skip to content

OpenSearch vs Elasticsearch: the fork explained

OpenSearch is the Apache 2.0 fork AWS created from Elasticsearch 7.10. Compare licensing, security, plugins, dashboards, and which path fits your stack.

OpenSearch and Elasticsearch share a code ancestor through Elasticsearch 7.10, then diverged in January 2021 when Elastic changed the license. This article frames the decision for operators picking a search engine in 2026: what’s compatible, what’s not, where the projects have drifted, and which fits common operational shapes. Audience is anyone choosing between the two for a new deployment or planning a migration.

How to verify

If you have both running, check which fork and version by hitting the root:

curl -sk https://es-host:9200/ | jq .version
curl -sk https://os-host:9200/ | jq .version
curl -sk https://os-host:9200/ | jq '.version.distribution'

OpenSearch returns "distribution": "opensearch". Elasticsearch returns "build_flavor": "default" and a build hash tied to Elastic builds. The API shape on the surface is similar, but /_xpack is Elasticsearch-only and /_plugins/_security is OpenSearch-only.

What’s happening

In January 2021, Elastic relicensed Elasticsearch and Kibana from Apache 2.0 to a dual SSPL/Elastic License model. The SSPL is not OSI-approved and restricts running the software as a hosted service. AWS forked the last Apache 2.0 commit (7.10.2) and named it OpenSearch. The Linux Foundation took stewardship of OpenSearch in September 2024.

Since the split:

  • Elasticsearch continued under Elastic’s commercial roadmap. Vector search, ES|QL query language, semantic search, the synonyms API, runtime fields, and the new search applications layer are Elastic-first.
  • OpenSearch rebuilt the X-Pack equivalents — Security plugin (RBAC, audit), ISM (lifecycle), Alerting, Anomaly Detection, SQL/PPL, Observability, ML Commons. The plugins are Apache 2.0.
  • API drift is real. The _xpack namespace doesn’t exist in OpenSearch; OpenSearch added _plugins/*. Clients written against ES 7.10 mostly work against OpenSearch with the compatibility.override_main_response_version flag, but ES 8.x clients reject OpenSearch by default.

In Elasticsearch 8.x, security is on by default with TLS and basic auth bundled in the free tier. OpenSearch has shipped its security plugin from day one — same outcome via different code.

The decision

Pick OpenSearch when:

  1. License needs to be Apache 2.0 — internal redistribution, embedding in a SaaS product, or strict corporate procurement rules. Elastic License v2 is not OSI-free.
  2. AWS-native deployment — OpenSearch Service (managed) is the path AWS supports. ES on AWS now requires self-hosting on EC2.
  3. Cost-sensitive log analytics at scale — ISM, alerting, RBAC are bundled. Equivalent ES features are tiered.
  4. You already run logstash + filebeat 7.x — the agents work fine with the OSS components and the migration to OpenSearch is mostly a rename of indices and templates.

Pick Elasticsearch when:

  1. You need newer Elastic-first features — ES|QL, semantic search with ELSER, the synonyms API, vector quantization with the latest BBQ format. These reach Elasticsearch first.
  2. You run Elastic’s broader stack — Fleet + Elastic Agent managed via Kibana, APM with native Elastic integrations, the Elastic Defend EDR. The managed agent story is tighter.
  3. You are committed to the Elastic Cloud SaaS — Elastic’s own managed offering ships these features faster.
  4. You depend on machine learning features — the Elastic ML jobs (anomaly detection, data frame transforms) are more mature than OpenSearch’s anomaly detector.

For most log + APM stacks, OpenSearch is the pragmatic choice. For product search with semantic + lexical hybrid retrieval, modern Elasticsearch usually wins on features in 2026.

Migration direction matters. OpenSearch can restore Elasticsearch 7.10 snapshots directly. Going from Elasticsearch 8.x to OpenSearch requires either a reindex via the Elasticsearch to OpenSearch migration path or a snapshot downgrade. Going from OpenSearch to Elasticsearch 8.x usually requires reindex-from-remote.

Operational notes

  • Client libraries are not interchangeable. Use opensearch-py against OpenSearch and elasticsearch-py against Elasticsearch — the 8.x client refuses to talk to OpenSearch by default.
  • Logstash output plugin is a sticking point. The logstash-output-opensearch plugin needs explicit install; the bundled elasticsearch output can target OpenSearch with ecs_compatibility => disabled but it’s not a stable contract.
  • Dashboards diverge. Kibana 8 only talks to Elasticsearch 8; OpenSearch Dashboards is the fork — see OpenSearch Dashboards vs Kibana for the feature delta.
  • Vector search APIs differ. OpenSearch uses the k-NN plugin with lucene or nmslib engines; Elasticsearch uses native dense vectors with BBQ. Embedding pipelines are not portable.
  • Snapshot repository compatibility is asymmetric — assume one-way migration unless you keep both clusters on the 7.10 lineage.

In the engagements we run, the choice is rarely abstract — it’s driven by what the team already operates, where the data lives, and what the redistribution rules are. We’ve migrated clusters in both directions and the migration cost is usually weeks of reindex + dashboard rewrite, not a flip of a config flag. See /en/services/managed-operations/ for how we operate search infrastructure across both forks.