Learn · Search

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
How do you switch?

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

  • Microsoft logo
  • Henry Schein logo
  • Enbridge logo
  • Gojek logo

Partners

  • Broadcom logo
  • Redis logo
  • VMware Tanzu logo
  • OSSeva logo

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).

ELv2SSPL 1.0AGPLv3
Applies toThe default distribution, and the source of free and paid featuresSource of Elasticsearch and Kibana, at your choiceSource of Elasticsearch and Kibana, at your choice
What it asks of youNo hosted or managed service offered to third parties with a substantial set of its features; do not circumvent license keys; keep noticesIf you offer the product as a service, publish modifications and the source of your management layers under SSPL, per ElasticMake modifications and derivative works available under the same licence
CopyleftNone, per ElasticYes, aimed at service providersYes
Described by Elastic as OSI-approvedNot statedNot statedYes

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.

45 minutes with an engineer: we review your workload and sketch the design, then price it.

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 situationLicence points to check
You run it for your own applicationsELv2 default is workable; AGPL asks little unless you modify; check your policy on non-OSI licences
You embed it in a SaaS you sellAllowed within ELv2 limits per Elastic's FAQ; confirm you are not exposing it as a service of its own
You host it for other companiesELv2 is the wrong licence; SSPL or AGPL obligations apply; Apache 2.0 OpenSearch avoids both
You patch the engineAGPL 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.

  1. Inventory

    List versions, indices, plugins, ingest pipelines, security features and every client library in use.

  2. Decide the licence need

    Do you modify the engine, host it for others, or only operate it internally?

  3. Rehearse

    Restore data into the target, replay real queries and compare results and latency.

  4. 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.
Talk to an engineer

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.

Talk to an engineer

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
See pricing →

Your request goes to the OSStend team. No newsletter sign-up.

Get a quoteTalk to an engineer
2Engines Optional
3Where should it run?
4What do you need?

Your request goes to the OSStend team. No newsletter sign-up.