# Kibana as a service in linux

**URL:** <https://discuss.elastic.co/t/kibana-as-a-service-in-linux/61996>\
**Category:** Kibana\
**Created:** [October 1, 2016, 9:59pm UTC](https://discuss.elastic.co/t/kibana-as-a-service-in-linux/61996 "2016-10-01T21:59:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gperez](https://avatars.discourse-cdn.com/v4/letter/g/4af34b/32.png) [@gperez](https://discuss.elastic.co/u/gperez)\
**Post date:** [October 1, 2016, 9:59pm UTC](https://discuss.elastic.co/t/kibana-as-a-service-in-linux/61996/1 "2016-10-01T21:59:26Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [October 3, 2016, 5:34pm UTC](https://discuss.elastic.co/t/kibana-as-a-service-in-linux/61996/2 "2016-10-03T17:34:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Saman\_Mohamadi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saman_mohamadi/32/12369_2.png) [@Saman\_Mohamadi](https://discuss.elastic.co/u/Saman_Mohamadi)\
**Post date:** [October 9, 2016, 9:12am UTC](https://discuss.elastic.co/t/kibana-as-a-service-in-linux/61996/3 "2016-10-09T09:12:33Z")

</div>

I have The Same Problem on Arch linux

---

<div class="post-metadata">

**Author:** ![gperez](https://avatars.discourse-cdn.com/v4/letter/g/4af34b/32.png) [@gperez](https://discuss.elastic.co/u/gperez)\
**Post date:** [October 9, 2016, 4:04pm UTC](https://discuss.elastic.co/t/kibana-as-a-service-in-linux/61996/4 "2016-10-09T16:04:45Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![Jamir\_Phillips](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@Jamir\_Phillips](https://discuss.elastic.co/u/Jamir_Phillips)\
**Post date:** [March 17, 2017, 5:33pm UTC](https://discuss.elastic.co/t/kibana-as-a-service-in-linux/61996/5 "2017-03-17T17:33:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:32pm UTC](https://discuss.elastic.co/t/kibana-as-a-service-in-linux/61996/6 "2017-07-06T13:32:40Z")

</div>


