# Logstash cannot find logstash.yml directory

**URL:** https://discuss.elastic.co/t/logstash-cannot-find-logstash-yml-directory/272288
**Category:** Logstash
**Created:** [May 6, 2021, 12:04pm UTC](https://discuss.elastic.co/t/logstash-cannot-find-logstash-yml-directory/272288 "2021-05-06T12:04:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![almotasim90](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@almotasim90](https://discuss.elastic.co/u/almotasim90)
#### Post date: [May 6, 2021, 12:04pm UTC](https://discuss.elastic.co/t/logstash-cannot-find-logstash-yml-directory/272288/1 "2021-05-06T12:04:51Z")

</div>

Hi,

I am running ELK stack in debian 10. I removed logstash with apt command and removed /etc/logstash , /var/lib/logstash directories.

Now I am trying to install logstash again, but it does not install all confugration file with it. ![Capture_logstash](https://us1.discourse-cdn.com/elastic/original/3X/d/a/da3fadcb720a1f49c52e69ce090e8e5f67705710.jpeg)

so now the Logstash directory has only (conf.d). what should I do??

Thanks in advance!

---

<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 10, 2021, 12:46am UTC](https://discuss.elastic.co/t/logstash-cannot-find-logstash-yml-directory/272288/2 "2021-05-10T00:46:21Z")

</div>

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: ![almotasim90](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@almotasim90](https://discuss.elastic.co/u/almotasim90)
#### Post date: [May 10, 2021, 8:59am UTC](https://discuss.elastic.co/t/logstash-cannot-find-logstash-yml-directory/272288/3 "2021-05-10T08:59:13Z")

</div>

Sorry about that, the picture shows that (Can't read [//logstah.yml](https://logstah.yml): not such file or directory).

---

<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 10, 2021, 10:27am UTC](https://discuss.elastic.co/t/logstash-cannot-find-logstash-yml-directory/272288/4 "2021-05-10T10:27:22Z")

</div>

Can you please post the entire thing as formatted code.

---

<div class="post-metadata">

### Author: ![almotasim90](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@almotasim90](https://discuss.elastic.co/u/almotasim90)
#### Post date: [May 10, 2021, 10:53am UTC](https://discuss.elastic.co/t/logstash-cannot-find-logstash-yml-directory/272288/5 "2021-05-10T10:53:13Z")

</div>

I have fixed the problem, I deployed another Debian 10 machine in VirtualBox then install ELK stack there, Then copy default configuration files of Logstash to my current machine.  
Not an efficient way, but it works.

Thank you though.

---

<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 7, 2021, 10:53am UTC](https://discuss.elastic.co/t/logstash-cannot-find-logstash-yml-directory/272288/6 "2021-06-07T10:53:48Z")

</div>

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