Kibana as a service in linux


(Guillermo Pérez Farquharson) #1

Hi.
I installed ELK stack in linux (manjaro). Everything looks good except for kibana service.

systemctl status kibana

● kibana.service - Kibana - dashboard for Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2016-10-01 08:58:26 ART; 9h ago
Process: 614 ExecStart=/usr/bin/node --max-old-space-size=128 /usr/lib/kibana/src/cli --quiet --config=/etc/elas
Main PID: 614 (code=exited, status=1/FAILURE)

Oct 01 08:58:24 room systemd[1]: Started Kibana - dashboard for Elasticsearch.
Oct 01 08:58:26 room systemd[1]: kibana.service: Main process exited, code=exited, status=1/FAILURE
Oct 01 08:58:26 room systemd[1]: kibana.service: Unit entered failed state.
Oct 01 08:58:26 room systemd[1]: kibana.service: Failed with result 'exit-code'.

However I can get it up and running lik this, under /usr/lib/kibana:
sudo bin/kibana

Any clue?


(Spencer Alger) #2

How did you install Kibana? I'm familiar with this setup, but wonder if you used the supported packages or something else.


(Saman Mohamadi) #3

I have The Same Problem on Arch linux


(Guillermo Pérez Farquharson) #4

Hi Spencer.
Sorry for the delay.
I installed from Arch Linux repos, like this:
yaourt -S kibana

I understand that supported packages are only CentOs and Ubuntu right?

Anyway, then I set things up, and enabled the service like this:

#config kibana
sudo nano /usr/lib/kibana/config/kibana.yml 
[...] # basically changed the conf to: server.host: "localhost"

# start and enable service
sudo systemctl start kibana
sudo systemctl enable kibana.service

(Jamir Phillips) #5

Very useful post. My service was setup using systemctl. However I was using Linux based service commands to check the status. I should have used systemctl to check the status of the service.

Good
systemctl status kibana.service

Not Good
service kibana status


(system) #6