# Config File doesn't work

**URL:** <https://discuss.elastic.co/t/config-file-doesnt-work/272712>\
**Category:** Logstash\
**Created:** [May 11, 2021, 3:00pm UTC](https://discuss.elastic.co/t/config-file-doesnt-work/272712 "2021-05-11T15:00:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![qttv](https://avatars.discourse-cdn.com/v4/letter/q/ee59a6/32.png) [@qttv](https://discuss.elastic.co/u/qttv)\
**Post date:** [May 11, 2021, 3:00pm UTC](https://discuss.elastic.co/t/config-file-doesnt-work/272712/1 "2021-05-11T15:00:25Z")

</div>

Good evening.

I'm trying to run Logstash for the first time. I already downloaded and runned with success ElasticSearch and Kibana.

I created the config file named "logstash-simple.conf" following the istructions on the official tutorial of Logstash, but when i open the prompt command and i try to launch the string "...bin\>logstash -f logstash-simple.conf" i obtain the following messages:

" **No config files found in path {:path=\>"C:/Users/Valerio/Desktop/work/Logstash/logstash-7.12.1/bin/logstash-simple.conf"}**"

and

"**Logstash stopped beacuse of an error (SystemExit).**"

I specify that my logstash-simple.conf file is positioned in the "bin" directory of Logstash, and the content of that file is exactly the same of the tutorial:

input { stdin { } }  
output {  
elasticsearch { hosts =\> ["localhost:9200"] }  
stdout { codec =\> rubydebug }  
}

How can i solve my problem?  
Thank you.

 ![script](https://us1.discourse-cdn.com/elastic/original/3X/e/1/e18935e47cd2ef778adb2af1a896748056ea8252.png)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 11, 2021, 11:02pm UTC](https://discuss.elastic.co/t/config-file-doesnt-work/272712/2 "2021-05-11T23:02:48Z")

</div>

Welcome to our community! 😃

Please don't post pictures of text, they are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 11, 2021, 11:13pm UTC](https://discuss.elastic.co/t/config-file-doesnt-work/272712/3 "2021-05-11T23:13:56Z")

</div>

> [@qttv](#):
>
> **No config files found in path {:path=\>"C:/Users/Valerio/Desktop/work/Logstash/logstash-7.12.1/bin/logstash-simple.conf"}**"

Either that file does not exist or logstash does not have permissions to read it.

---

<div class="post-metadata">

**Author:** ![qttv](https://avatars.discourse-cdn.com/v4/letter/q/ee59a6/32.png) [@qttv](https://discuss.elastic.co/u/qttv)\
**Post date:** [May 12, 2021, 7:32am UTC](https://discuss.elastic.co/t/config-file-doesnt-work/272712/4 "2021-05-12T07:32:26Z")

</div>

Good morning.

The file is stored in the following path: **C:\Users\Valerio\Desktop\work\Logstash\logstash-7.12.1\bin**

In particular, i launch the file using the following command:

**C:\Users\Valerio\Desktop\work\Logstash\logstash-7.12.1\bin\>logstash -f logstash-simple.conf**

so the config file should exist. What permission may Logstash need to read it?

---

<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 9, 2021, 7:32am UTC](https://discuss.elastic.co/t/config-file-doesnt-work/272712/5 "2021-06-09T07:32:28Z")

</div>

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