# Logstash without NSSM

**URL:** <https://discuss.elastic.co/t/logstash-without-nssm/204480>\
**Category:** Logstash\
**Created:** [October 21, 2019, 1:17pm UTC](https://discuss.elastic.co/t/logstash-without-nssm/204480 "2019-10-21T13:17:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![philu](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@philu](https://discuss.elastic.co/u/philu)\
**Post date:** [October 21, 2019, 1:17pm UTC](https://discuss.elastic.co/t/logstash-without-nssm/204480/1 "2019-10-21T13:17:03Z")

</div>

Is there a way to install Logstash (7.x) on Windows WITHOUT nssm (non su\*\*ing Service Manager? Every tutorial is based on nssm. Same for Kibana.

Does SC.exe not provided enough possiblities? Why is that so?

Also another question: does elastic really want to be dependent from an external tool? For example: I'm working from behind a big corp proxy and nssm is blacklisted/forbidden because certain miners / malware are using it.

Someone already asked a nearly same question but didn't recieve an answer.

[https://discuss.elastic.co/t/logstash-as-a-service-windows-without-nssm-other/132849](https://discuss.elastic.co/t/logstash-as-a-service-windows-without-nssm-other/132849)

---

<div class="post-metadata">

**Author:** ![Krunal\_kalaria](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krunal_kalaria/32/23862_2.png) [@Krunal\_kalaria](https://discuss.elastic.co/u/Krunal_kalaria)\
**Post date:** [October 21, 2019, 1:38pm UTC](https://discuss.elastic.co/t/logstash-without-nssm/204480/2 "2019-10-21T13:38:34Z")

</div>

Hi @philu,

If i am not wrong then you mean to say that need to run the logstash service in windows background so you do not need to run again and again when you startup your system?

Second thing is your comapny won't be allowed to install NSSM in your system because of some policy violation ?

Thanks & Regards,  
Krunal.

---

<div class="post-metadata">

**Author:** ![philu](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@philu](https://discuss.elastic.co/u/philu)\
**Post date:** [October 21, 2019, 1:45pm UTC](https://discuss.elastic.co/t/logstash-without-nssm/204480/3 "2019-10-21T13:45:47Z")

</div>

Hi @Krunal_kalaria

Exactly. I want to run logstash as a windows service. All the tutorials are using nssm (which is a 3rd party tool). I'm looking for another way than nssm, best would be a service creation with the onboard windows tools (like sc.exe).

Our company does analyze the traffic which is completely normal. The following is from: [https://nssm.cc/ci/nssm-2.24-101-g897c7ad.zip](https://nssm.cc/ci/nssm-2.24-101-g897c7ad.zip)

"Virus was detected in the content (virus\_detected)"  
Content contained "Blacklisted file" virus. Details: File reputation score: 8; File: nssm-2.24-101-g897c7ad.zip

---

<div class="post-metadata">

**Author:** ![Krunal\_kalaria](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krunal_kalaria/32/23862_2.png) [@Krunal\_kalaria](https://discuss.elastic.co/u/Krunal_kalaria)\
**Post date:** [October 21, 2019, 1:47pm UTC](https://discuss.elastic.co/t/logstash-without-nssm/204480/4 "2019-10-21T13:47:42Z")

</div>

To run an app as a service, you’re going to need a small, third-party utility. There are several out there, but our favorite is [SrvStart](http://www.rozanski.org.uk/software). It was originally designed for Windows NT, and will work with just about any version of Windows from Windows XP on up.

To get started, head over to the [SrvStart download page](http://www.rozanski.org.uk/software) and grab the utility. The download contains just four files (two DLL and two EXE files). There’s no installer; instead, copy these to your computer’s `C:\Windows` folder these to your main Windows folder to “install” SrvStart.

Please refer this link for more info dont know if it's working for you or not i hope it will.

> **[How to Run Any Program as a Background Service in Windows](https://www.howtogeek.com/50786/using-srvstart-to-run-any-application-as-a-windows-service/)**
>
> If you’re like most Windows users, you have lots of great little utilities that run when you start Windows. While this works great for most apps, there are some that would be nice to start even before a user logs in to the PC. To do this, you’ll need...

Thanks & Regards,  
Krunal.

---

<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:** [November 18, 2019, 1:47pm UTC](https://discuss.elastic.co/t/logstash-without-nssm/204480/5 "2019-11-18T13:47:48Z")

</div>

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