Make Kibana 4 remain running after disconnecting SSH session Make Kibana 4 remain running after disconnecting SSH session elasticsearch elasticsearch

Make Kibana 4 remain running after disconnecting SSH session


You can detach the process from your session.

./bin/kibana &disown


The answer from Louis-Philippe Huberdeau wasn't working for me, so this is my solution:

sh kibana-4.0.1-linux-x64/bin/kibana >> /var/log/kibana.log(or /dev/null) &


I find running Kibana4 as a service the most convenient practice. It works (near flawlessly) even after you disconnect SSH. One can (re)start/stop it with one simple command. To run Kibana as a service, first download the kibana4 init script:

cd /etc/init.dsudo wget https://gist.githubusercontent.com/thisismitch/8b15ac909aed214ad04a/raw/bce61d85643c2dcdfbc2728c55a41dab444dca20/kibana4

Enable the Kibana4 service and you're good to go:

sudo chmod +x /etc/init.d/kibana4sudo update-rc.d kibana4 defaults 96 9sudo service kibana4 start

Complete credits to this answer goes to this wonderful step-by-step ELK installation guide. You can do likewise for Elasticsearch, Logstash and Logstash-forwarder as well.