Elasticsearch: Search and Analytics With a Licence Question
Elasticsearch is the original, still excellent, and the thing to understand first is its licence history.
The licensing timeline
Apache 2.0 until 2021, then SSPL plus Elastic License, which are not open source because they restrict service offerings. That triggered the OpenSearch fork.
In 2024 Elastic added AGPL v3 as an option, which is an OSI-approved open source licence. So Elasticsearch is open source again, under a copyleft network licence.
Our licences guide covers why AGPL reduces corporate adoption and what the network clause actually triggers on. For a self-hoster running it for your own purposes, AGPL triggers nothing: the obligation attaches to offering it as a service to others.
Choosing between the two
OpenSearch if you want Apache 2.0 and no thinking required, or if you are on AWS tooling.
Elasticsearch if you want the newer features. Elastic has shipped a good deal since the fork, and on vector search, ES|QL and the machine learning features it is generally ahead.
The ecosystems have diverged enough that this is now a real choice rather than branding. Clients, plugins and dashboards are not interchangeable.
What it is for
Full-text search, log analytics, and increasingly vector search. The Elastic Stack adds Kibana for visualisation, Beats and Logstash for ingestion.
For logs specifically, compare Loki, which indexes labels rather than content and costs considerably less to run at the same volume. For application search, Meilisearch and Typesense are far lighter.
The resource reality
A JVM cluster wanting gigabytes of heap, with the usual guidance of heap under half of RAM and below about 32GB.
sysctl -w vm.max_map_count=262144
That setting is required and its absence is the most common first-boot failure.
Operational caution
Authentication is on by default in current versions, which was not always true, and the internet still contains open clusters from when it was not. Verify yours is secured rather than assuming.
Shard count is close to irreversible per index and is where capacity planning actually lives: too many small shards wastes heap, too few prevents scaling.
License
Elasticsearch is available under the AGPL v3, the SSPL, or the Elastic License.