# Run Kibana as a Windows service without using nssm tool

**URL:** <https://discuss.elastic.co/t/run-kibana-as-a-windows-service-without-using-nssm-tool/265808>\
**Category:** Kibana\
**Created:** [March 1, 2021, 1:54pm UTC](https://discuss.elastic.co/t/run-kibana-as-a-windows-service-without-using-nssm-tool/265808 "2021-03-01T13:54:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ARoy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aroy/32/47196_2.png) [@ARoy](https://discuss.elastic.co/u/ARoy)\
**Post date:** [March 1, 2021, 1:54pm UTC](https://discuss.elastic.co/t/run-kibana-as-a-windows-service-without-using-nssm-tool/265808/1 "2021-03-01T13:54:08Z")

</div>

Hi, I am using Kibana v 7.10.1, and need to run Kibana without using nssm tool.  
I tried to install using power shell script as follows :  
sc.exe create "ElasticSearch Kibana 4.0.1" binPath= "binpath" depend= "elasticsearch-service-x64"  
But get an error on trying to start the Kibana service :

![image](https://us1.discourse-cdn.com/elastic/original/3X/b/4/b4f8427d9d2ab20cd094a9c1e7edc535d90cac6b.png)

Please help.

Thanks,  
Roy

---

<div class="post-metadata">

**Author:** ![Dzmitry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzmitry/32/65026_2.png) [@Dzmitry](https://discuss.elastic.co/u/Dzmitry)\
**Post date:** [March 1, 2021, 3:41pm UTC](https://discuss.elastic.co/t/run-kibana-as-a-windows-service-without-using-nssm-tool/265808/2 "2021-03-01T15:41:30Z")

</div>

Hi @ARoy

In order to get more context, could you clarify some things:

- do you have any specific reasons not to use nssm?
- why do you want to make Kibana service dependent on ES service? Did you try to start without `dependent`?

Regards, Dzmitry

---

<div class="post-metadata">

**Author:** ![ARoy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aroy/32/47196_2.png) [@ARoy](https://discuss.elastic.co/u/ARoy)\
**Post date:** [March 1, 2021, 5:08pm UTC](https://discuss.elastic.co/t/run-kibana-as-a-windows-service-without-using-nssm-tool/265808/3 "2021-03-01T17:08:11Z")

</div>

Hi @Dzmitry , since we need to execute it in an environment with minimum external tools, as part of the client requirement, we have have to make use of the default tools provided by the os.  
Also did try the same without dependent, but got a different error, as follows :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/5/f5017d1974be2678cba19e8b8662d1dde3296189.png)  
It will be really good if can implement it locally using any script, without involving any external tools.  
Thanks !  
Roy

---

<div class="post-metadata">

**Author:** ![Dzmitry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzmitry/32/65026_2.png) [@Dzmitry](https://discuss.elastic.co/u/Dzmitry)\
**Post date:** [March 2, 2021, 4:46pm UTC](https://discuss.elastic.co/t/run-kibana-as-a-windows-service-without-using-nssm-tool/265808/4 "2021-03-02T16:46:08Z")

</div>

Hi @ARoy,

I see your point, but unfortunately we don't have any script or commands list for Windows to share at the moment.

Can you consider using [msi](https://www.elastic.co/guide/en/elasticsearch/reference/current/windows.html#msi-installer-windows-service) installer?

Regards, Dzmitry

---

<div class="post-metadata">

**Author:** ![ARoy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aroy/32/47196_2.png) [@ARoy](https://discuss.elastic.co/u/ARoy)\
**Post date:** [March 2, 2021, 5:56pm UTC](https://discuss.elastic.co/t/run-kibana-as-a-windows-service-without-using-nssm-tool/265808/5 "2021-03-02T17:56:39Z")

</div>

Sure @Dzmitry , that sounds good. Can you please suggest how can proceed similar to elasticsearch, which already has a batch installer as a service.

---

<div class="post-metadata">

**Author:** ![Dzmitry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzmitry/32/65026_2.png) [@Dzmitry](https://discuss.elastic.co/u/Dzmitry)\
**Post date:** [March 3, 2021, 9:35am UTC](https://discuss.elastic.co/t/run-kibana-as-a-windows-service-without-using-nssm-tool/265808/6 "2021-03-03T09:35:01Z")

</div>

Hi @ARoy ,

I just checked that there is no msi installer for the Kibana and unfortunately no date defined for its release.

Sorry, but It looks like nssm is the most common way to do it.

Regards, Dzmitry

---

<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:** [March 31, 2021, 9:35am UTC](https://discuss.elastic.co/t/run-kibana-as-a-windows-service-without-using-nssm-tool/265808/7 "2021-03-31T09:35:39Z")

</div>

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