LOGBOOK

HELP

Quiz Entry - updated: 2026.11.26

To run Elasticsearch 8 and Kibana in Docker you first set vm.max_map_count and then start two containers on a shared Docker network. Why the kernel setting, and how does Kibana get connected to Elasticsearch?

Elasticsearch memory-maps its index files and needs more memory-map areas than Linux allows by default. Since version 8, the first start prints the elastic password and a Kibana enrollment token; you paste the token into Kibana's web page, which sets up a TLS-secured connection.

The kernel setting. Elasticsearch stores its indices through memory-mapped files (mmapfs), and each mapping counts against the per-process limit vm.max_map_count. If it is too low, the node fails at startup or later runs out of memory. Older guides use sysctl -w vm.max_map_count=262144; Elastic's current documentation asks for at least 1048576. sysctl -w only lasts until reboot; put it in /etc/sysctl.conf (or /etc/sysctl.d/) to keep it.

The containers. docker network create elastic gives both containers a private network where they reach each other by name. Elasticsearch publishes 9200 (REST API) and 9300 (cluster transport); Kibana publishes 5601 (web UI).

Security by default (8.x). On the first start Elasticsearch enables TLS and authentication on its own, then prints the password of the built-in elastic user and an enrollment token. Kibana's first page asks for that token. With it, Kibana learns the cluster's address and CA and gets its own credentials. These values are shown only on the first start, so copy them immediately (they can be regenerated with Elasticsearch's tools).

Go deeper:

From Quiz: ITIA / Network Automation with Ansible and a Check Point Firewall | Updated: Nov 26, 2026