Elastic Kibana - install as windows service

jhilden picture jhilden · Mar 25, 2015 · Viewed 36.5k times · Source

How can I install Elastic Kibana (which is just a batch file) as a windows service?

It probably needs to depend on the ElasticSearch process as well (this assumes I'm running it on the same server)

Answer

jhilden picture jhilden · Mar 25, 2015

The following command will create the service with a name of "ElasticSearch Kibana 4.0.1" and make it depend on ElasticSearch so it doesn't try to start too soon.

sc create "ElasticSearch Kibana 4.0.1" binPath= "{path to batch file}" depend= "elasticsearch-service-x64"