# Logstash 2.3.4 as Windows Service using Apache procrun

**URL:** <https://discuss.elastic.co/t/logstash-2-3-4-as-windows-service-using-apache-procrun/62866>\
**Category:** Logstash\
**Created:** [October 12, 2016, 8:37pm UTC](https://discuss.elastic.co/t/logstash-2-3-4-as-windows-service-using-apache-procrun/62866 "2016-10-12T20:37:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdconner](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@mdconner](https://discuss.elastic.co/u/mdconner)\
**Post date:** [October 12, 2016, 8:37pm UTC](https://discuss.elastic.co/t/logstash-2-3-4-as-windows-service-using-apache-procrun/62866/1 "2016-10-12T20:37:10Z")

</div>

I'm getting the following errors when running "logstash.bat agent -f C:\temp\scribe\data\logstash\config --debug":

/usr/bin/stty: standard input: Inappropriate ioctl for device  
io/console not supported; tty will not be manipulated  
No such command "agent -f C:\temp\scribe\data\logstash\config --debug"

Followed by Usage info.

I've run with both types of slashes, and without "agent" argument. Any ideas?

---

<div class="post-metadata">

**Author:** ![mdconner](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@mdconner](https://discuss.elastic.co/u/mdconner)\
**Post date:** [October 19, 2016, 4:13pm UTC](https://discuss.elastic.co/t/logstash-2-3-4-as-windows-service-using-apache-procrun/62866/2 "2016-10-19T16:13:50Z")

</div>

Found the problem & solution. prunsrv (wrapper that calls the service) is adding double quotes around all arguments. I modified a version of logstash.bat to strip quotes using "%~1"

---

<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:** [July 6, 2017, 4:33am UTC](https://discuss.elastic.co/t/logstash-2-3-4-as-windows-service-using-apache-procrun/62866/3 "2017-07-06T04:33:32Z")

</div>

Closed on July 6, 2017, 4:33am UTC


