Running kibana as a service on Linux

OS: Linux

I used putty to remotely install kibana on linux machine as follows:-

  1. Download the kibana 4.3.0 tar
    curl -L -O Extract it
    tar -xvf kibana-4.3.0-linux-x64.tar.gz
  2. Added server.port,, elasticsearch.url in kibana.yml
  3. After that I started elasticsearch as:-

Now, how do I need to run it as a service.??

Hi Aviral,

It's probably possible to complete what you're trying to do, but there's a much easier way.

  1. Go to and download the Linux package appropriate for your Linux distribution. For example, on Ubuntu 64-bit you would get the .deb package
    On Redhat or CentOS you would get the .rpm package.

  2. Install the package (as root). On Ubuntu dpkg -i <the .deb package you downloaded>
    On Redhat or CentOS yum install -y <the .rpm package you downloaded>

  3. same steps as above for Elasticsearch.

  4. The config files are in /etc/elasticsearch and /etc/kibana (but they should both start and connect with no changes)

  5. as root service elasticsearch start , service kibana start

NOTE: Installing the packages create elasticsearch and kibana users and starting the services runs them as those users

  1. see /var/log/elasticsearch/elasticsearch.log and /var/log/kibana/kibana.stdout


Also, see and instructions "Install Kibana with Debian Package" or "Install Kibana with RPM"

What am I doing wrong here ??

I have created a service file to run kibana 4.3.0
under /etc/systemd/system/kibana.service
Description=Kibana 4

ExecStart=/home/app/kibana-4.3.0-linux-x64/node/bin/node /home/app/kibana-4.3.0-linux-x64src/cli


Then I did following steps:-

  1. sudo systemctl daemon-reload
  2. sudo systemctl start kibana

But it is not starting
I tried checking the status:;
sudo systemctl status kibana
● kibana.service - Kibana 4
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2017-01-19 15:02:54 IST; 7min ago
Process: 21863 ExecStart=/home/appadmin/kibana-4.3.0-linux-x64/node/bin/node /home/appadmin/kibana-4.3.0-linux-x64/src/cli (code=exited, status=217/USER)
Main PID: 21863 (code=exited, status=217/USER)

Jan 19 15:02:54 XX-XXX-XXXXXX systemd[1]: Started Kibana 4.
Jan 19 15:02:54 XX-XXX-XXXXXX systemd[1]: Starting Kibana 4...
Jan 19 15:02:54 XX-XXX-XXXXXX systemd[1]: kibana.service: main process exited, code=exited, status=217/USER
Jan 19 15:02:54 XX-XXX-XXXXXX systemd[1]: Unit kibana.service entered failed state.
Jan 19 15:02:54 XX-XXX-XXXXXX systemd[1]: kibana.service failed.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.