How to Install Kibana with Debian Packages

Luego de haber realizado mi instalación de Elastic Search, decidí montar un plugin llamado  Kibana, para poder visualizar y explorar datos que se encuentran indexados en  ElasticSearch.

Podemos decir también , que como en el pasado con otros productos open source aparecieron siglas como LAMP (Linux/Apache/MySQL/PHP) para esta familia de elastic, contenemos el stack ELK:

  • Elasticsearch
  • Logstash
  • Kibana

En mi caso, decidi comenzar la instalación de forma manual , con pkgs de Debian en mi Ubuntu server 16.

Descargamos los paquetes del repositorio oficial:

hadoop@srvhadoopt3:$ wget https://artifacts.elastic.co/downloads/kibana/kibana-5.6.3-amd64.deb
--2017-10-12 16:59:33--  https://artifacts.elastic.co/downloads/kibana/kibana-5.6.3-amd64.deb
Resolving proxgue.garba.com.ar (proxgue.garba.com.ar)... 10.0.60.3
Connecting to proxgue.garba.com.ar (proxgue.garba.com.ar)|10.0.60.3|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 52533368 (50M) [application/octet-stream]
Saving to: ‘kibana-5.6.3-amd64.deb’

kibana-5.6.3-amd64.deb                          100%[====================================================================================================>]  50.10M  1.34MB/s    in 65s

2017-10-12 17:00:40 (784 KB/s) - ‘kibana-5.6.3-amd64.deb’ saved [52533368/52533368]

Verifico que el paquete sea seguro y que contiene el hash correspondiente

hadoop@srvhadoopt3:$ sha1sum kibana-5.6.3-amd64.deb
12821507ace7c49eea5011e360f8353007f0ab90  kibana-5.6.3-amd64.deb

Bien, una vez descargado , procedemos con la instalacion del package:

hadoop@srvhadoopt3:$ sudo dpkg -i kibana-5.6.3-amd64.deb
Selecting previously unselected package kibana.
(Reading database ... 99577 files and directories currently installed.)
Preparing to unpack kibana-5.6.3-amd64.deb ...
Unpacking kibana (5.6.3) ...
Setting up kibana (5.6.3) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...

Agregamos el servicio para que al inicio pueda estar disponible.

Para ello podemos ejecutarlo con SysVinit:

hadoop@srvhadoopt3:$ sudo update-rc.d kibana defaults 95 10
hadoop@srvhadoopt3:$ sudo -i service kibana start
hadoop@srvhadoopt3:$ sudo -i service kibana stop

O configurarlo con systemd:

 root@srvhadoopt3:$ /bin/systemctl daemon-reload
 root@srvhadoopt3:$ /bin/systemctl enable kibana.service
 Synchronizing state of kibana.service with SysV init with /lib/systemd/systemd-sysv-install...
 Executing /lib/systemd/systemd-sysv-install enable kibana

Subimos el servicio y verificamos el estado del mismo

 
 hadoop@srvhadoopt3:$ sudo systemctl start kibana.service
 hadoop@srvhadoopt3:$ sudo systemctl status kibana.service
 ● kibana.service - Kibana
 Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: enabled)
 Active: active (running) since Thu 2017-10-12 17:02:24 ART; 2min 35s ago
 Main PID: 5255 (node)
 Tasks: 10
 Memory: 68.7M
 CPU: 4.795s
 CGroup: /system.slice/kibana.service
 └─5255 /usr/share/kibana/bin/../node/bin/node --no-warnings /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
Oct 12 17:02:24 srvhadoopt3 systemd[1]: Started Kibana.
Oct 12 17:02:27 srvhadoopt3 kibana[5255]: {"type":"log","@timestamp":"2017-10-12T20:02:27Z","tags":["status","plugin:kibana@5.6.3","info"],"pid":5255,"state":"green","message":"Status chang
Oct 12 17:02:28 srvhadoopt3 kibana[5255]: {"type":"log","@timestamp":"2017-10-12T20:02:28Z","tags":["status","plugin:elasticsearch@5.6.3","info"],"pid":5255,"state":"yellow","message":"Stat
Oct 12 17:02:28 srvhadoopt3 kibana[5255]: {"type":"log","@timestamp":"2017-10-12T20:02:28Z","tags":["status","plugin:console@5.6.3","info"],"pid":5255,"state":"green","message":"Status chan
Oct 12 17:02:28 srvhadoopt3 kibana[5255]: {"type":"log","@timestamp":"2017-10-12T20:02:28Z","tags":["status","plugin:elasticsearch@5.6.3","error"],"pid":5255,"state":"red","message":"Status
Oct 12 17:02:28 srvhadoopt3 kibana[5255]: {"type":"log","@timestamp":"2017-10-12T20:02:28Z","tags":["status","plugin:metrics@5.6.3","info"],"pid":5255,"state":"green","message":"Status chan
Oct 12 17:02:28 srvhadoopt3 kibana[5255]: {"type":"log","@timestamp":"2017-10-12T20:02:28Z","tags":["status","plugin:timelion@5.6.3","info"],"pid":5255,"state":"green","message":"Status cha
Oct 12 17:02:28 srvhadoopt3 kibana[5255]: {"type":"log","@timestamp":"2017-10-12T20:02:28Z","tags":["listening","info"],"pid":5255,"message":"Server running at http://localhost:5601"}
Oct 12 17:02:28 srvhadoopt3 kibana[5255]: {"type":"log","@timestamp":"2017-10-12T20:02:28Z","tags":["status","ui settings","error"],"pid":5255,"state":"red","message":"Status changed from u

Acerca de Juan Andres Mercado

Big Data Enthusiast, DBA & Exadata Manager | Consultant | Father | Musician | Farmer | Environmentalist Argentina | juanmercadoit.com
Esta entrada fue publicada en BI, Big Data, Linux y etiquetada , , , , , , . Guarda el enlace permanente.