Skip to content
IT glossary
DevOps and cloudUpdated December 3, 2026

ELK stack

ELK

A set of three tools—Elasticsearch, Logstash, and Kibana—for processing, searching, and exploring data. Teams often use it to bring logs from many systems into one searchable place.

Also known as: Logstash

What the ELK stack does

Suppose a customer reports a failed checkout. The gateway, checkout service, and payment service may each have recorded a different piece of the failure. A centralized logging setup lets an engineer search those records together instead of opening a terminal on every host. ELK is named after the three tools in the original stack: Elasticsearch, Logstash, and Kibana. Kibana and Logstash are components, not alternative names for the stack.

Follow a log event through the stack

  • Collect. An application writes a log to a file or standard output. A collector such as Filebeat can read that event and forward it to Logstash. Collection is a separate job from transforming the event.
  • Transform. Logstash runs a pipeline with inputs, optional filters, and outputs. It can parse a timestamp, extract a status code from a text line, or add an environment field before sending the event to Elasticsearch.
  • Index. Elasticsearch stores the event as a document. Field mappings control how values are interpreted, so a timestamp can support time-range filters and a numeric status code can be used in aggregations.
  • Explore. Kibana sends queries to Elasticsearch. An engineer can inspect individual events in Discover or build a dashboard that shows how error counts change over time. Kibana is not where the log documents are stored.

Elastic Stack is the broader name and includes tools such as Beats and Elastic Agent. Not every Elastic Stack deployment needs Logstash. If applications already produce structured logs, a collector might send them directly to Elasticsearch, with an ingest pipeline handling any remaining transformations.

Example: look beyond the gateway error

In Kibana Discover, select the time window around a failed checkout and enter a Kibana Query Language (KQL) filter:

service.name: "gateway" and http.response.status_code: 502

This works if the events contain those fields. Open a matching event and check for a trace.id. If other services propagate and log that ID, clear the gateway-only filter and search for the ID across services. You might find a payment timeout that explains the gateway's 502 response.

Production and interview takeaways

Teams use this setup for incident response, application debugging, and searching audit logs. Centralized logs complement metrics and distributed tracing; they do not automatically provide either. Set a retention policy so old logs do not fill the cluster, and prevent passwords and tokens from reaching the index.

A common interview question is: “Why isn't this event visible in Kibana?” Trace the data path before blaming the UI. Confirm that the source emitted the event, the collector delivered it, the processing pipeline kept it, and Elasticsearch accepted it. If the document is already indexed, check whether the Kibana data view includes the right indices or data streams and whether the selected time field and range include the event.