Kibana is a proprietary data visualization dashboard software for Elasticsearch, whose open source successor in OpenSearch is OpenSearch Dashboards. It is a data visualization and exploration tool used for log and time-series analytics, application monitoring, and operational intelligence use cases. It offers powerful and easy-to-use features such as histograms, line graphs, pie charts, heat maps, and built-in geospatial support. Kibana also acts as the user interface for monitoring, managing, and securing an Elastic Stack cluster - as well as the centralized hub for built-in solutions developed on the Elastic Stack.
In this guide, we will learn how to install and configure Kibana on Debian 11.
Related Content:
- How to Install and Configure Kibana on Ubuntu 22.04
- How to Install and Configure Elasticsearch 8 on Ubuntu 22.04
- How to Install and Configure Elasticsearch on Rocky Linux 8
- How to Install and Configure Kibana on Rocky Linux/Alma Linux 8
- How to Install and Configure Kibana on OpenSUSE Leap 15.3
Ensuring that the server is up to date
Before proceeding, let us ensure that our server is up to date and all the packages are the latest version. Use these commands to achieve this:
|
|
If there are packages to upgrade, the above command may take a couple of minutes.
Let us also install some common packages that we will need later:
|
|
Import the Elasticsearch PGP Key
Elasticsearch signs all of our packages with the Elasticsearch Signing Key (PGP key D88E42B4, available from https://pgp.mit.edu) with fingerprint:
|
|
Download and install the public signing key:
|
|
Install Elasticsearch from the APT repository
You may need to install the apt-transport-https
package on Debian before proceeding:
|
|
Save the repository definition to /etc/apt/sources.list.d/elastic-8.x.list
:
|
|
You can then install the Elasticsearch package with:
|
|
Confirm the installation
|
|
Start and enable Kibana service
Use this command to start Kibana service on the system.
|
|
Confirm the service status using this command:
|
|
The above output shows that the service is up and running. Enable the service using this command:
|
|
Enable the service in firewall
If you have firewall installed and enabled, you need to allow the service. Use these commands to achieve that:
|
|
Configuring Kibana
Kibana configuration file can be found in this path /etc/kibana/kibana.yml
. Kibana will run as a http service exposing port 5601
. It is bound to localhost by default. Confirm this using this command:
|
|
This is my output:
|
|
To bind the service to all ports so the service can be accessed remotely, addd this line to the file:
|
|
To connect to an Elasticsearch instance, use this:
|
|
If you have configured a password for your elasticsearch, configure with this:
|
|
If you do not have Elasticsearch installed, please check out this guide How to Install and Configure Elasticsearch on Debian 11.
To apply the changes, you need to restart the kibana service:
|
|
Accessing Kibana dashboard
Access the Kibana dashboard on your web browser at http://server-IP:5601
. You can now configure your graphs and metrics.