Skip to main content

Kibana

Kibana is a visualization layer that works on top of Elasticsearch, providing users with the ability to analyze and visualize the data.

I. Install Kibana with Docker

Kibana Configuration

Create file kibana.yml under configuration/kibana folder with the following configurations:

server.host: "0.0.0.0"
server.shutdownTimeout: "5s"
elasticsearch.hosts: [ "http://elasticsearch8:9200" ]
monitoring.ui.container.elasticsearch.enabled: true

Kibana Docker Service

Add the following kibana service to docker-compose.yml and point to the kibana.yml file above:

kibana:
image: docker.elastic.co/kibana/kibana:8.12.2
restart: always
volumes:
- ${configuration_dir:-./configuration/kibana/kibana.yml}:/usr/share/kibana/config/kibana.yml
depends_on:
- elasticsearch8

II. Install Kibana on Ubuntu Server

1. Install Kibana

info

Skip the first two commands if you have already installed the Elastic repository when installing Elasticsearch.

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elastic-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/elastic-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-8.x.list

sudo apt update && sudo apt install kibana -y

2. Configure Kibana

Create the Kibana configuration folder and edit the configuration file:

sudo mkdir -p /etc/kibana
sudo nano /etc/kibana/kibana.yml

Add the following configuration:

server.host: "0.0.0.0"
server.shutdownTimeout: "5s"

# Elasticsearch connection settings
elasticsearch.hosts: ["http://localhost:9200"]

# Enable container monitoring (similar to Docker config)
monitoring.ui.container.elasticsearch.enabled: true

3. Start and Enable Kibana

sudo systemctl enable kibana
sudo systemctl start kibana
tip

Use sudo systemctl status kibana to check if Kibana is running correctly.