# Could not find logstash.yml file despite the file being located in the default directory

**URL:** https://discuss.elastic.co/t/could-not-find-logstash-yml-file-despite-the-file-being-located-in-the-default-directory/286084
**Category:** Logstash
**Created:** [October 7, 2021, 12:47am UTC](https://discuss.elastic.co/t/could-not-find-logstash-yml-file-despite-the-file-being-located-in-the-default-directory/286084 "2021-10-07T00:47:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Johnny\_Cash\_Cow](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johnny_cash_cow/32/78919_2.png) [@Johnny\_Cash\_Cow](https://discuss.elastic.co/u/Johnny_Cash_Cow)
#### Post date: [October 7, 2021, 12:47am UTC](https://discuss.elastic.co/t/could-not-find-logstash-yml-file-despite-the-file-being-located-in-the-default-directory/286084/1 "2021-10-07T00:47:43Z")

</div>

Good Evening,

Here is the layout of my directory:  
Within `/etc/logstash/` is the following files and directories:

```auto
conf.d log4j2.properties logstash.yml startup.options jvm.options logstash-sample.conf
piplelines.yml

```

I have tried to `/usr/share/logstash/bin/logstash --path.config etc/logstash` but also to no avail  
and `/usr/share/logstash/bin/logstash -f --path.config etc/logstash`  
and `/usr/share/logstash/bin/logstash -f, --path.config etc/logstash`

These have not worked. Any help would be appreciated

---

<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: [October 11, 2021, 12:52am UTC](https://discuss.elastic.co/t/could-not-find-logstash-yml-file-despite-the-file-being-located-in-the-default-directory/286084/2 "2021-10-11T00:52:42Z")

</div>

Welcome to our community! 😃

> [@Johnny\_Cash\_Cow](#):
>
> --path.config etc/logstash

Pretty sure you need `/etc/logstash`, and you're missing the first `/`.

---

<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: [November 8, 2021, 12:53am UTC](https://discuss.elastic.co/t/could-not-find-logstash-yml-file-despite-the-file-being-located-in-the-default-directory/286084/3 "2021-11-08T00:53:29Z")

</div>

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