The Elastic Stack, often called the ELK stack, is a set of tools for collecting, storing, searching and visualising data. ELK stands for Elasticsearch, Logstash and Kibana: Elasticsearch stores and searches the data, Logstash processes and ships it, and Kibana lets you explore and chart it. Today the stack also includes Beats and Elastic Agent for data collection, which is why the name "Elastic Stack" replaced "ELK stack" in 2016.
This guide explains each component, how data flows through them and which parts you need for a given job.
The original three open projects were Elasticsearch, Logstash and Kibana, and people started calling them ELK. When Beats were added as lightweight shippers, the letters no longer fit, so Elastic renamed the collection the Elastic Stack. You will still see "ELK stack explained" in tutorials, and the terms mean the same thing in practice. Some newer guides say "ELKB" or simply "the Elastic Stack".
Elasticsearch is the core. It stores documents in indices, builds inverted indices, and answers search and aggregation queries over a REST API. Everything else in the stack exists to put data into it or to look at the data inside it.
Kibana is the web interface for Elasticsearch. It does not store your data. It sends queries to Elasticsearch and displays the results. Common features are:
By default Kibana runs on port 5601 and connects to Elasticsearch on port 9200.
Logstash is a server-side data processing pipeline. It reads events from inputs, transforms them with filters, and writes them to outputs. A pipeline file has three sections.
This pipeline receives events from Beats, parses Apache access log lines into fields with grok, sets the event time, and writes daily indices to Elasticsearch. Logstash is powerful but runs on the JVM and uses noticeable memory, so it is often used only when you need heavy parsing, enrichment or many different inputs and outputs.
Beats are small, single-purpose shippers installed on the machines that produce data.
| Tool | What it collects |
|---|---|
| Filebeat | Log files |
| Metricbeat | System and service metrics |
| Packetbeat | Network traffic |
| Winlogbeat | Windows event logs |
| Heartbeat | Uptime checks |
Elastic Agent is the newer, unified shipper. One agent can collect logs, metrics and security data, and it is managed centrally through Fleet in Kibana. For new deployments Elastic recommends Elastic Agent where it covers your needs, while Beats remain supported.
A typical log pipeline looks like this:
You do not need every tool. A small project may use only Elasticsearch and Kibana with an application client that indexes data directly.
Elasticsearch, Kibana and Logstash can be downloaded and used for free, with some features reserved for paid subscription tiers. Licences changed over the years, so read the current terms for your use case.
Not always. Beats or Elastic Agent can send data directly to Elasticsearch, and ingest pipelines can do many transformations there. Logstash is useful for complex parsing, many sources or routing to several outputs.
Beats are lightweight collectors that ship data from the edge. Logstash is a heavier central processor that transforms and routes data.
No. Elasticsearch works through its REST API alone. Kibana adds a user interface for exploring and managing it.
The Elastic Stack combines Elasticsearch for storage and search, Kibana for visualisation, Logstash for processing pipelines, and Beats or Elastic Agent for collection. ELK is the older name for the first three. Pick only the components your pipeline needs, starting with Elasticsearch and Kibana.