# Unable to start logstash service Windows server 64 bit

**URL:** <https://discuss.elastic.co/t/unable-to-start-logstash-service-windows-server-64-bit/319363>\
**Category:** Logstash\
**Created:** [November 20, 2022, 11:17am UTC](https://discuss.elastic.co/t/unable-to-start-logstash-service-windows-server-64-bit/319363 "2022-11-20T11:17:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jisha](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jisha](https://discuss.elastic.co/u/jisha)\
**Post date:** [November 20, 2022, 11:17am UTC](https://discuss.elastic.co/t/unable-to-start-logstash-service-windows-server-64-bit/319363/1 "2022-11-20T11:17:36Z")

</div>

Hi,

I have downloaded and unzipped logstash and tried to install it as service using nssm. Logstash gets successfully installed but when i try to start the service it is showing as below screenshot.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/d/9d62646794e43a93a5b9a2176eabf4b46e6b529c.png)  
This is the errors showing in system event logs.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/5/159534b040791b8a0111e77edeb45877fe6e8992.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/f/efcd3d66446c1f55c36a1106bdb1568dd6c42dc4.png)  
i have changed the location of unziped logstash folder and tried but still showing same issue.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [November 21, 2022, 8:01am UTC](https://discuss.elastic.co/t/unable-to-start-logstash-service-windows-server-64-bit/319363/2 "2022-11-21T08:01:01Z")

</div>

The most likely path to logstash.bat is not OK.  
Make sure that .conf is working correctly in the command line.

Check you nssm settings. Run cmd/ps with admin privs  
`nssm.exe edit logstash` (set your correct service name)

In the `Application` tab review next 3 parameter:

- Path: Path to `logstash.bat`: `C:\logstash-8.5.1\bin\logstash.bat`
- Startup Directory: Path to the `bin` directory: `C:\logstash-8.5.1\bin`
- Arguments: For this example to start Logstash: `-f C:\logstash-8.5.1\config\<youfilename>.conf` (I think it's supported event directory, but will add all files from config directory)

---

<div class="post-metadata">

**Author:** ![jisha](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jisha](https://discuss.elastic.co/u/jisha)\
**Post date:** [November 22, 2022, 9:06am UTC](https://discuss.elastic.co/t/unable-to-start-logstash-service-windows-server-64-bit/319363/3 "2022-11-22T09:06:15Z")

</div>

After following those steps its showing error as below  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/7/d729303d64e92dac6cd607be61fac09fc79718bc.png)

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [November 22, 2022, 9:42am UTC](https://discuss.elastic.co/t/unable-to-start-logstash-service-windows-server-64-bit/319363/4 "2022-11-22T09:42:08Z")

</div>

Can you run: `nssm edit < servicename > `  
If you have moved directory you have to set correct values.

---

<div class="post-metadata">

**Author:** ![jisha](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jisha](https://discuss.elastic.co/u/jisha)\
**Post date:** [November 24, 2022, 9:09am UTC](https://discuss.elastic.co/t/unable-to-start-logstash-service-windows-server-64-bit/319363/5 "2022-11-24T09:09:40Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/f/5/f5dcf10451a3fbcd6e6018c547bbab08f2585083.png)  
i believe i have set the correct path .

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [November 24, 2022, 9:14am UTC](https://discuss.elastic.co/t/unable-to-start-logstash-service-windows-server-64-bit/319363/6 "2022-11-24T09:14:10Z")

</div>

I cannot see, have you put `-f` at the begging of Arguments? Other params looks OK.

---

<div class="post-metadata">

**Author:** ![jisha](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jisha](https://discuss.elastic.co/u/jisha)\
**Post date:** [November 29, 2022, 5:30am UTC](https://discuss.elastic.co/t/unable-to-start-logstash-service-windows-server-64-bit/319363/8 "2022-11-29T05:30:04Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/2/f/2f56598883511dd9bea10d42778fca531f692064.png)  
Yes i have added -f at argument

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [November 29, 2022, 4:07pm UTC](https://discuss.elastic.co/t/unable-to-start-logstash-service-windows-server-64-bit/319363/9 "2022-11-29T16:07:46Z")

</div>

Have you put nssm.exe in logstash\bin directory?  
I have noticed it's in a different directory.

---

<div class="post-metadata">

**Author:** ![jisha](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jisha](https://discuss.elastic.co/u/jisha)\
**Post date:** [November 30, 2022, 5:26am UTC](https://discuss.elastic.co/t/unable-to-start-logstash-service-windows-server-64-bit/319363/10 "2022-11-30T05:26:05Z")

</div>

i have changed nssm to logstash\bin directory and tried but still didn't worked showing the same error

---

<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:** [December 28, 2022, 5:27am UTC](https://discuss.elastic.co/t/unable-to-start-logstash-service-windows-server-64-bit/319363/11 "2022-12-28T05:27:04Z")

</div>

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