Running kibana as a service on Linux

Hi Aviral,

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

  1. Go to https://www.elastic.co/downloads/kibana and download the Linux package appropriate for your Linux distribution. For example, on Ubuntu 64-bit you would get the .deb package https://artifacts.elastic.co/downloads/kibana/kibana-5.1.2-amd64.deb
    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

Regards,
Lee