1. Add ELK (Elasticsearch, Logstash, Kibana) repository to apt.
    1. Add GPG key of ELK's repository via apt-key.
      $ wget --quiet --output-document=- https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
      [sudo] password for user:
      OK
    2. Create ELK repository file.
      $ echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
      deb https://artifacts.elastic.co/packages/6.x/apt stable main
  2. Update list of available packages from the newly added repository.
    $ sudo apt update
  3. Install Kibana package.
    $ sudo apt install --assume-yes kibana
  4. Enable network access to port 5601.
    $ sudo ufw allow 5601
    Rules updated
    Rules updated (v6)
  5. Configure Kibana options located in /etc/kibana/kibana.yml.
    1. Allow connection from remote host.
       server.host: "0.0.0.0" 
    2. Specify Elasticsearch server to connect to.
       elasticsearch.url: "http://192.168.2.131:9200" 
  6. Configure Kibana to automatically start during boot.
    $ 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
  7. Start Kibana service.
     $ sudo systemctl start kibana
  8. Test if installation was successfully by opening your browser to port 5601 of your Kibana host.
Discuss the article:

Share your thoughts, suggest corrections or just say Hi. Login not required.

Share!