Kibana

On this page 7

Kibana is the web-based visualization and exploration interface for Elasticsearch, used in monitoring & logs work to search indexed log events, build dashboards and investigate incidents on servers. It forms the presentation layer of the ELK stack, in which Logstash or lightweight shippers collect data, Elasticsearch stores and indexes it, and Kibana turns it into queries, charts and alerts.

Kibana does not store data itself. Every chart and search is translated into Elasticsearch queries and aggregations, so its speed and capabilities depend directly on how the underlying indices are designed, mapped and sized.

How Kibana works with Elasticsearch

Kibana runs as a Node.js server application, usually on port 5601, and communicates with an Elasticsearch cluster through its REST API. A browser loads the Kibana interface, the user builds a search or a chart, and Kibana sends the corresponding query DSL request to Elasticsearch and renders the response.

Access to data is organized through data views, formerly called index patterns, which point Kibana at one or more indices such as logs-nginx-* and define the timestamp field used for time filtering. Saved objects, including dashboards, visualizations and searches, are stored in a dedicated system index inside the same cluster.

The table below summarizes how responsibilities are divided among the components of a typical log pipeline.

ComponentRoleExample
ShipperReads log files and forwards eventsFilebeat or Fluent Bit
ProcessorParses and enriches eventsLogstash or ingest pipelines
ElasticsearchIndexes and stores eventsDaily or data stream indices
KibanaSearches, visualizes and alertsDashboards and Discover
Roles in a log pipeline built around Kibana

Main Kibana applications for log analysis

Kibana groups its features into applications, each built for a different stage of log analysis. Administrators usually start in Discover for ad hoc searches and move to dashboards once recurring questions become clear.

ApplicationPurposeTypical use
DiscoverRaw event search and filteringFinding all 5xx errors in the last hour
LensDrag-and-drop visualization builderRequests per minute by status code
DashboardsCombined panels with shared filtersWeb server health overview
AlertingRules that trigger notificationsError rate above a threshold
Logs ExplorerStreaming log view with contextFollowing a deployment in real time
Stack ManagementUsers, roles, data views and settingsRestricting access per team
Kibana applications used in monitoring

Searches are written in the Kibana Query Language (KQL), for example http.response.status_code >= 500 and host.name : web-02, or in the older Lucene syntax. Newer versions also offer ES|QL, a piped query language suited to aggregations and transformations directly in Discover.

Kibana is tightly bound to Elasticsearch, which is both its main strength and its main constraint. Competing interfaces differ chiefly in the storage engine they depend on and in whether they focus on logs, metrics or both.

ToolData sourceTypical strength
KibanaElasticsearch onlyFull-text log search and rich aggregations
GrafanaMany sources, including Loki and PrometheusMetric dashboards across systems
GraylogIts own stack on OpenSearch or ElasticsearchStream-based log routing
SplunkProprietary indexerEnterprise search and security analytics
OpenSearch DashboardsOpenSearchOpen-source fork of Kibana
Kibana compared with other observability interfaces

Since 2021, Kibana has been distributed under the Elastic License and SSPL, with AGPL added later as an option. This licensing change led to the community fork OpenSearch Dashboards, so teams selecting a stack should verify the license terms that apply to their deployment model.

Deploying and securing Kibana

A production deployment needs authentication, encrypted transport and role-based access, because log data often contains IP addresses, user identifiers and internal error details. Current Elastic releases enable security features by default, but older or hand-built installations frequently expose Kibana without a login.

  • Match versions exactly: Kibana must run the same version as the Elasticsearch cluster it connects to.
  • Place it behind a reverse proxy with TLS and restrict port 5601 at the firewall.
  • Use spaces and roles to separate teams and limit which indices each group can read.
  • Run several instances behind a load balancer when many analysts work at the same time.

Sizing Kibana itself is rarely difficult, because the Node.js process typically needs one to two gigabytes of memory and modest CPU. The heavy work happens in Elasticsearch, so capacity planning should focus on heap size, shard count and disk throughput of the data nodes. A useful rule is to keep individual shards between roughly 10 and 50 gigabytes and to avoid thousands of tiny daily indices, which slow down every query Kibana sends.

Upgrades also deserve planning. Kibana migrates its saved objects automatically when a new version starts for the first time, so administrators should take a snapshot of the cluster beforehand and test the upgrade on a staging copy that contains the real dashboards and alert rules.

Limitations and common mistakes

Most Kibana problems originate in Elasticsearch design rather than in the interface. Slow dashboards usually reflect expensive aggregations over large time ranges or poorly mapped fields.

SymptomLikely causeFix
Field not usable in chartsMapped as text instead of keywordCorrect the mapping and reindex
Dashboard times outWide time range over huge indicesShorter range or rollup data
Events missing in DiscoverWrong timestamp field or time zoneFix the data view time field
Cluster under heavy loadToo many auto-refreshing panelsRaise refresh intervals
Storage grows without limitNo log retention policyApply index lifecycle management
Frequent Kibana issues and remedies

Kibana is also not a long-term archive. Retention is governed by index lifecycle management in Elasticsearch, and keeping months of verbose logs in hot storage quickly becomes the largest cost of the whole platform.

Put simply

Servers write down everything they do in log files. On a busy system, these notes grow by millions of lines every day. Reading them by hand is impossible.

Kibana is the window into that collection of notes. The notes are stored and sorted in a database called Elasticsearch. Kibana lets people search them like a search engine and turn them into charts. The main benefit is speed: a problem that once took hours of digging can often be spotted on one screen within minutes.

In practice

A hosting provider runs 40 web servers that each produce several gigabytes of Nginx access and error logs per day. Filebeat ships the logs to a three-node Elasticsearch cluster, and the support team watches a Kibana dashboard showing request rate, 5xx error share and slowest URLs per server.

One evening, an alert rule fires because the error share on two servers rises above 2 percent for five minutes. In Discover, an engineer filters by host.name and status code and sees that every failing request targets the same plugin endpoint, beginning right after a scheduled update. The team rolls back the update within 20 minutes, and the dashboard confirms that the error rate returns to its normal baseline almost immediately.