Elasticsearch licence explained: AGPL, SSPL and ELv2
Elasticsearch has three licences on offer, and the default download uses one of them. This guide says which licence applies to what, what each asks of you, and how OpenSearch compares. It is a plain-English reading of the vendors' own pages, not legal advice.
45 minutes with an engineer: we review your workload and sketch the design.
- ✓Checked 4 Dec 2026
- ✓Licensing
- ✓Sources linked
Elastic offers Elasticsearch and Kibana source under three licences: SSPL 1.0, AGPLv3 and the Elastic License 2.0, at the user's choice. The default distribution is under ELv2. Elastic added AGPL on 29 August 2024 and removed nothing. OpenSearch is Apache 2.0 and governed under the Linux Foundation. Checked 4 December 2026.
Customers
Partners
Which licences apply to Elasticsearch today?
Per Elastic's licensing FAQ, the source of Elasticsearch and Kibana is available under SSPL 1.0, AGPLv3 and the Elastic License 2.0, with the choice left to the user. The default distribution is under ELv2, and client libraries are Apache 2.0 (Elastic FAQ, checked 4 Dec 2026).
| ELv2 | SSPL 1.0 | AGPLv3 | |
|---|---|---|---|
| Applies to | The default distribution, and the source of free and paid features | Source of Elasticsearch and Kibana, at your choice | Source of Elasticsearch and Kibana, at your choice |
| What it asks of you | No hosted or managed service offered to third parties with a substantial set of its features; do not circumvent license keys; keep notices | If you offer the product as a service, publish modifications and the source of your management layers under SSPL, per Elastic | Make modifications and derivative works available under the same licence |
| Copyleft | None, per Elastic | Yes, aimed at service providers | Yes |
| Described by Elastic as OSI-approved | Not stated | Not stated | Yes |
Sources: Elastic licensing FAQ and ELv2 text, checked 4 Dec 2026. Summaries, not a legal reading.
What did Elastic change on 29 August 2024?
Elastic announced that it would add AGPL as a licence option next to ELv2 and SSPL, and said Elasticsearch and Kibana could be called open source again. ELv2 and SSPL stayed available, and users already on Elasticsearch could carry on as before (Elastic, checked 4 Dec 2026).
Elastic's post says it changed licence in 2021 because of issues with AWS and the market confusion that its offering caused, and that the change led to a fork under a different name. It adds that Amazon is now fully invested in that fork and that the partnership with AWS is stronger. Elastic calls AGPL an OSI-approved licence and says it chose it as part of its work with the OSI.
The practical point is that the 2024 change added a choice. It did not take ELv2 away, and the default download did not switch licence: the FAQ still lists the default distribution as ELv2. Whether your use counts as open source in your own policy therefore depends on which licence you take it under.
What does AGPL mean for a company using Elasticsearch internally?
If you run an unmodified Elasticsearch, the AGPL text lets you run it without restriction. The obligation to offer source arises in section 13 when you modify the program and let users interact with that modified version over a network (GNU AGPLv3, checked 4 Dec 2026). Most internal users never modify it.
- Unmodified, internal.
- Running the software is permitted without conditions, per section 2.
- Modified, with users reaching it over a network.
- Section 13 requires prominently offering those users the Corresponding Source. The text does not limit this to external users, so a modified build used by employees across a network deserves a legal read.
- Plugins.
- Elastic's FAQ says building a plugin for Elasticsearch or Kibana is not a derivative work and does not change how you license your plugin.
If your engineers patch Elasticsearch itself, involve counsel before you choose AGPL. If they only configure and operate it, AGPL asks little of you. That is the information the vendor pages do not spell out for a buyer, and it is why we split the cases.
What do ELv2 and SSPL restrict?
ELv2 has three limits: do not offer the software to third parties as a hosted or managed service giving access to a substantial set of its features, do not work around license keys, and keep licensing notices (Elastic, checked 4 Dec 2026). Elastic describes SSPL as requiring a service provider to publish modifications and management-layer source.
Both target the same thing: a third party selling Elasticsearch as a service. Using ELv2 software inside your own applications, including SaaS you sell that embeds it, is allowed within its limits, per Elastic's FAQ. The FAQ also says public cloud providers offering Elasticsearch or Kibana releases after the change must comply with SSPL, AGPLv3 or the Elastic License (Elastic FAQ, checked 4 Dec 2026).
How does OpenSearch's governance differ?
OpenSearch is licensed under Apache 2.0, and the Linux Foundation announced the OpenSearch Software Foundation on 16 September 2024. The project, previously hosted by AWS, is overseen by a technical steering committee, with AWS, SAP and Uber as premier members (GitHub; Linux Foundation, checked 4 Dec 2026).
Apache 2.0 is permissive: it has no clause aimed at hosting the software as a service. Elasticsearch under AGPL has copyleft, and under ELv2 has the hosted-service limit. For a team that does not host for others, the difference is mostly about vendor control and procurement rules. For feature and performance differences, read OpenSearch vs Elasticsearch, which this page deliberately does not repeat.
Which one fits a managed service provider?
A provider that sells search as a service has the most to check. ELv2 bars offering a managed service with a substantial set of the features, SSPL asks for management-layer source, and AGPL asks for modified source. Apache 2.0 OpenSearch has no such clause. Take legal advice before you commit.
| Your situation | Licence points to check |
|---|---|
| You run it for your own applications | ELv2 default is workable; AGPL asks little unless you modify; check your policy on non-OSI licences |
| You embed it in a SaaS you sell | Allowed within ELv2 limits per Elastic's FAQ; confirm you are not exposing it as a service of its own |
| You host it for other companies | ELv2 is the wrong licence; SSPL or AGPL obligations apply; Apache 2.0 OpenSearch avoids both |
| You patch the engine | AGPL section 13 and SSPL both matter; get a legal read |
Does the licence affect which versions are supported?
Licence and support are separate. Elastic's support page lists 7.17 end of support on 15 January 2026, 8.x end of maintenance on 15 January 2027 and end of support on 15 July 2027, and 9.x end of maintenance on 15 October 2027 (Elastic, checked 4 Dec 2026).
The page notes that 8.17 is maintained until the release date of 8.19, and 8.18 until the release date of 9.2. If you still run 7.17 you are already past its end-of-support date. A licence decision and a version plan are best made together, because a move to OpenSearch or a managed engine is a migration whichever way you choose.
How do you switch?
Switching means mapping what you use first: queries, plugins, ingest, security features and client libraries. Then you rehearse the move on a copy and cut over per consumer. Our migration guide covers the Elasticsearch-to-OpenSearch path, and managed pages cover who runs the cluster afterwards.
Inventory
List versions, indices, plugins, ingest pipelines, security features and every client library in use.
Decide the licence need
Do you modify the engine, host it for others, or only operate it internally?
Rehearse
Restore data into the target, replay real queries and compare results and latency.
Cut over
Move consumers gradually and keep the old cluster read-only until each is stable.
Steps are in the Elasticsearch to OpenSearch migration guide. If you stay on Elasticsearch, managed Elasticsearch and Elasticsearch support describe how OSStend runs and supports it; for OpenSearch see managed OpenSearch. OSStend runs community, unforked open-source engines 24/7 with named engineers, in OSStend's cloud, your cloud account, your data center, on Kubernetes or OpenShift, or air-gapped. Pricing is quoted per design: see pricing.
Who this guide does not settle
Contact us if
- ✓You run Elasticsearch internally, unmodified, and want to know whether any licence limits you.
- ✓You are choosing between ELv2, AGPL and OpenSearch for a procurement or open-source policy review.
- ✓You need a version plan next to the licence question.
Not a fit if
- ✕You need a legal opinion on a specific modification, hosting offer or redistribution: this page is not that.
- ✕You want a feature or performance comparison: see the OpenSearch comparison page.
- ✕You need the exact text of a licence: read the linked licence, not our summary.
Elasticsearch licence questions answered
Is Elasticsearch open source?
Elastic said on 29 August 2024 that Elasticsearch and Kibana can be called open source again, after adding AGPL, which it calls OSI-approved. The default distribution is still under ELv2 per its FAQ, so it depends on which licence you take it under (Elastic; FAQ, checked 4 Dec 2026).
Is Elasticsearch free for commercial use?
Elastic's FAQ says using the default distribution is free, including in SaaS or self-managed applications, within ELv2's limitations. Paid features sit under the same licence structure; read the FAQ for yours (checked 4 Dec 2026).
What is the difference between SSPL and AGPL for Elasticsearch?
Both are copyleft. Elastic describes SSPL as requiring a service provider to publish modifications and its management-layer source; AGPL requires modified versions to be offered under the same licence, including to network users.
Can I host Elasticsearch for my customers?
Not under ELv2, which bars offering it as a hosted or managed service with a substantial set of its features. SSPL or AGPL obligations would apply instead, so take legal advice. OpenSearch under Apache 2.0 has no such clause.
Is OpenSearch a safe alternative on licence grounds?
It is Apache 2.0 and hosted under the Linux Foundation, with a technical steering committee (GitHub; Linux Foundation, checked 4 Dec 2026). Licence is only one factor: check features you use.
Elastic, Elasticsearch and Kibana are trademarks of Elasticsearch B.V. OpenSearch is a registered trademark of LF Projects, LLC. OSStend is not affiliated with or endorsed by either, and the names are used only to say which software the guide describes. Nothing here is legal advice.
Related pages
- ComparisonElasticsearch vs OpenSearch in 2026: which to runElasticsearch vs OpenSearch in 2026: licence, vector search, migration and when each is the better choice. Sourced and dated, by a team that runs OpenSearch.
- Migration guideElasticsearch to OpenSearch migration: 3 methodsElasticsearch to OpenSearch migration: remote reindex, snapshot restore or Migration Assistant, the version limits that decide which, and how cutover works.
- ElasticsearchElasticsearch as a service, in your cloud or oursElasticsearch as a service under the AGPLv3 option: masters, watermarks, snapshots and upgrades run 24/7 in our cloud, your cloud account or your data center.
- Elasticsearch supportElasticsearch support and consulting, run 24/7Elasticsearch support and consulting from OSStend engineers on call 24/7, for clusters you run yourself, with the Elastic licence and subscription facts checked 4 Dec 2026.
- OpenSearchManaged OpenSearch service, run 24/7 in your cloudElasticsearch as a service on OpenSearch: dedicated master and data nodes, hybrid keyword and vector search and snapshots, sized for your index and run 24/7.
- PricingDatabase as a service pricing: dedicated, tailoredDatabase as a service pricing from OSStend: dedicated, tailored clusters priced by engine, size, SLA tier and location. Enterprise only, with no free tier.
Check your Elasticsearch licence and version plan
45 minutes with an engineer: how you use Elasticsearch, your version dates and your licence questions are mapped, and you leave with a switch-or-stay plan for your counsel to review.
- ✓A design sketch for your workload, not a plan menu
- ✓A zero-downtime cutover path for what you run today
- ✓A price for that design, after the review





