Kibana
A web application for exploring and visualizing data in Elasticsearch. Engineers use it to search logs, investigate incidents, and build dashboards.
What it does
A dashboard can tell you when errors started rising. The individual log entries can tell you what failed. Kibana lets you work at both levels: open a chart to spot a change, then inspect the documents behind it in Elasticsearch. Logs are a common use case, but teams also use Kibana to explore metrics, traces, and audit events stored in Elasticsearch.
How the pieces fit together
The K in ELK stands for Kibana. In the original stack, Logstash processes and forwards events, Elasticsearch indexes and queries them, and Kibana provides the browser interface. Logstash is optional: an Elastic Agent, for example, can send data straight to Elasticsearch. Kibana displays search and aggregation results; it does not need a separate copy of the logs.
A typical workflow starts with a data view that points to one or more Elasticsearch indices or data streams. For time-based exploration, the view usually specifies a timestamp field so the time picker can limit the results. Discover is where you inspect individual documents. Lens lets you turn the data into a chart, and a dashboard puts several panels together so a team can compare signals in one place.
Example: tracing a failed checkout
Suppose support gives you the approximate time of a failed checkout. In Discover, narrow the time range and try this KQL (Kibana Query Language) filter:
service.name: "checkout" and http.response.status_code >= 500
The filter assumes those fields exist and the status code is indexed as a number. It finds matching log documents, not necessarily distinct failed requests: one request can produce several entries. If the logs include a trace.id, you can use it to find related events. Remove the checkout and status filters when you want to see calls to other services or successful steps in the same trace.
Common misconceptions
KQL selects matching documents; it does not define a calculation. To chart the count over time, configure the time buckets and count in Lens. To measure an error rate, make sure the numerator and denominator represent comparable populations, such as failed requests and all requests. A filtered count alone cannot tell you whether errors rose because the service got less reliable or because traffic increased.
How it comes up in interviews
A common DevOps interview prompt is: “The application is writing logs, but nothing new appears in Discover. What do you check?” Start with the selected time range, the active filters, the data view's target, and read permissions. Check whether Elasticsearch has actually indexed a recent event. If it has, compare the event timestamp with the field and time window Discover uses. If it hasn't, investigate the collection and ingestion pipeline rather than changing the dashboard.