# Logstash as a service windows

**URL:** <https://discuss.elastic.co/t/logstash-as-a-service-windows/87217>\
**Category:** Logstash\
**Created:** [May 26, 2017, 8:27am UTC](https://discuss.elastic.co/t/logstash-as-a-service-windows/87217 "2017-05-26T08:27:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kalman/32/49563_2.png) [@kalman](https://discuss.elastic.co/u/kalman)\
**Post date:** [May 26, 2017, 8:27am UTC](https://discuss.elastic.co/t/logstash-as-a-service-windows/87217/1 "2017-05-26T08:27:27Z")

</div>

Is there a official way you can run logstash as a service on windows? because logstash is started with a bat, how can I run it as a manged service to monitor if it crashes or if something happens in production

---

<div class="post-metadata">

**Author:** ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)\
**Post date:** [May 28, 2017, 4:24pm UTC](https://discuss.elastic.co/t/logstash-as-a-service-windows/87217/2 "2017-05-28T16:24:35Z")

</div>

I use nssm [https://nssm.cc/](https://nssm.cc/) to run the Logstash and Kibana as Windows service and use Powershell script to monitor service running status.

---

<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:** [June 25, 2017, 4:25pm UTC](https://discuss.elastic.co/t/logstash-as-a-service-windows/87217/3 "2017-06-25T16:25:08Z")

</div>

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