# How to run logstash configuration file in windows 8 command prompt

**URL:** <https://discuss.elastic.co/t/how-to-run-logstash-configuration-file-in-windows-8-command-prompt/92202>\
**Category:** Logstash\
**Created:** [July 7, 2017, 5:11am UTC](https://discuss.elastic.co/t/how-to-run-logstash-configuration-file-in-windows-8-command-prompt/92202 "2017-07-07T05:11:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saafianihan](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@saafianihan](https://discuss.elastic.co/u/saafianihan)\
**Post date:** [July 7, 2017, 5:11am UTC](https://discuss.elastic.co/t/how-to-run-logstash-configuration-file-in-windows-8-command-prompt/92202/1 "2017-07-07T05:11:15Z")

</div>

I have to run configuration file which is inside of logstash directory. I followed the steps which provided in the document,but failed.

while entering "logstash -f logstash.conf" in the command prompt, i am getting "logstash is not recognized as an external or internal command" Error...  
Please help me to move on....

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 7, 2017, 9:37am UTC](https://discuss.elastic.co/t/how-to-run-logstash-configuration-file-in-windows-8-command-prompt/92202/2 "2017-07-07T09:37:15Z")

</div>

What's the contents of the current directory when you run that command (i.e. run `dir` and post the output here)?

---

<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:** [August 4, 2017, 9:37am UTC](https://discuss.elastic.co/t/how-to-run-logstash-configuration-file-in-windows-8-command-prompt/92202/3 "2017-08-04T09:37:33Z")

</div>

Closed on August 4, 2017, 9:37am UTC

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