Elastic (the company behind the Elastic Stack) provides apt repository for Kibana, which you can install Kibana on Ubuntu, Debian, or any other variance that uses apt package manager.

You can install Kibana on Ubuntu or Debian by adding the repository to your system and installing the package using apt from the command line.

Steps to install Kibana on Ubuntu or Debian:

  1. Launch terminal.
  2. Add ELK (Elasticsearch, Logstash, Kibana) repository to apt.
    $ echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
    deb https://artifacts.elastic.co/packages/7.x/apt stable main
    [sudo] password for user:
    deb https://artifacts.elastic.co/packages/7.x/apt stable main
  3. Add GPG key of ELK's repository.
    $ wget --quiet --output-document=- https://artifacts.elastic.co/GPG-KEY-elasticsearch | gpg --dearmor | sudo tee /usr/share/keyrings/elasticsearch-archive-keyring.gpg
  4. Update apt's list of available packages from the newly added repository.
    $ sudo apt update
    Hit:1 https://artifacts.elastic.co/packages/7.x/apt stable InRelease
    Hit:2 http://archive.ubuntu.com/ubuntu hirsute InRelease
    Get:3 http://security.ubuntu.com/ubuntu hirsute-security InRelease [101 kB]
    Get:4 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease [109 kB]
    Hit:5 http://archive.ubuntu.com/ubuntu hirsute-backports InRelease 
    Fetched 209 kB in 1s (157 kB/s)                          
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    All packages are up to date.
  5. Install Kibana package using apt.
    $ sudo apt install --assume-yes kibana
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following NEW packages will be installed:
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 285 MB of archives.
    After this operation, 723 MB of additional disk space will be used.
    ##### snipped
  6. Enable network access to port 5601.
    $ sudo ufw allow 5601
    Rules updated
    Rules updated (v6)
  7. Open Kibana configuration file using your favorite text editor.
    $ sudo vi /etc/kibana/kibana.yml
  8. Uncomment and configure server.host to allow connection from remote host.
     server.host: "" 
  9. Uncomment elasticsearch.hosts and specify Elasticsearch server to connect to.
     elasticsearch.hosts: [""] 
  10. Configure Kibana to automatically start during system startup.
    $ sudo systemctl enable kibana
    Synchronizing state of kibana.service with SysV service script with /lib/systemd/systemd-sysv-install.
    Executing: /lib/systemd/systemd-sysv-install enable kibana
    Created symlink /etc/systemd/system/multi-user.target.wants/kibana.service → /etc/systemd/system/kibana.service.
  11. Start Kibana service.
     $ sudo systemctl start kibana
  12. Open your browser to port 5601 of your Kibana host to access Kibana's dashboard.
    $ curl -L
    <!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;
              src: url('/ui/fonts/inter_ui/Inter-UI-Thin-BETA.woff2') format('woff2'), url('/ui/fonts/inter_ui/Inter-UI-Thin-BETA.woff') format('woff');
    ##### snipped
Discuss the article:

Comment anonymously. Login not required.