There are a few ways to install Kibana, but the best way is probably via your system's default package manager. It's one of the easier methods and allows you to easily manage and update your Kibana installation.

Kibana's yum / dnf repository is provided Elastic (the company behind the Elastic Stack). You can install Kibana on CentOS, RHEL or Fedora by adding the repository to your system and to then install the package using yum or dnf.

Steps to install Kibana on CentOS, RHEL or Fedora:

  1. Create repository file for ELK.

    $ sudo tee /etc/yum.repos.d/elasticsearch.repo <<EOF [elasticsearch-7.x] name=Elasticsearch repository for 7.x packages baseurl=https://artifacts.elastic.co/packages/7.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md EOF

  2. Download and install public signing key for ELK repository.

    $ sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

  3. Install Kibana package using dnf or yum.

    $ sudo dnf install --assumeyes kibana Last metadata expiration check: 21:29:04 ago on Sat 01 May 2021 07:34:39 AM +08. Dependencies resolved. ======================================================================================  Package         Architecture    Version             Repository                  Size ====================================================================================== Installing:  kibana          x86_64          7.12.1-1            elasticsearch-7.x          273 M  Transaction Summary ====================================================================================== Install  1 Package  Total download size: 273 M Installed size: 690 M ##### snipped

  4. Open Kibana configuration file using your preferred text editor.

    $ sudo vi /etc/kibana/kibana.yml

  5. Uncomment and configure server.host to allow connection from remote hosts.

    server.host: "0.0.0.0" 

  6. Uncomment and specify Elasticsearch server to connect to.

    elasticsearch.hosts: ["http://127.0.0.1:9200"]
  7. Configure firewall to enable network access to port 5601

    $ sudo firewall-cmd --add-port=5601/tcp --permanent success

  8. Reload firewall rules and keep state information.

    $ sudo firewall-cmd --reload success

  9. Start Kibana service.

    $ sudo systemctl start kibana

  10. Configure Kibana service to automatically start during boot.

    $ sudo systemctl enable kibana Synchronizing state of kibana.service with SysV service script with /usr/lib/systemd/systemd-sysv-install. Executing: /usr/lib/systemd/systemd-sysv-install enable kibana Created symlink /etc/systemd/system/multi-user.target.wants/kibana.service → /etc/systemd/system/kibana.service.

  11. Access Kibana dashboard from browser.

    $ curl -L 127.0.0.1:5601 <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/><meta name="viewport" content="width=device-width"/><title>Elastic</title><style>                  @font-face {           font-family: 'Inter UI';           font-style: normal;           font-weight: 100; ##### snipped