# Could not find the logstash.yml

**URL:** https://discuss.elastic.co/t/could-not-find-the-logstash-yml/274614
**Category:** Logstash
**Created:** [June 1, 2021, 10:35am UTC](https://discuss.elastic.co/t/could-not-find-the-logstash-yml/274614 "2021-06-01T10:35:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Kanishk\_Madan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kanishk_madan/32/78928_2.png) [@Kanishk\_Madan](https://discuss.elastic.co/u/Kanishk_Madan)
#### Post date: [June 1, 2021, 10:35am UTC](https://discuss.elastic.co/t/could-not-find-the-logstash-yml/274614/1 "2021-06-01T10:35:53Z")

</div>

I have a problem when i run a file using this command :sudo /usr/share/logstash/bin/logstash -f /etc/logstash/logstash.conf  
It shows:-  
Could not find logstash.yml which is typically located in $LS\_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults  
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console  
[INFO] 2021-06-01 06:33:28.948 [main] runner - Starting Logstash {"logstash.version"=\>"7.13.0", "jruby.version"=\>"jruby 9.2.16.0 (2.5.7) 2021-03-03 f82228dc32 OpenJDK 64-Bit Server VM 11.0.10+9 on 11.0.10+9 +indy +jit [linux-x86\_64]"}  
[FATAL] 2021-06-01 06:33:28.977 [main] runner - An unexpected error occurred! {:error=\>#\<ArgumentError: Path "/usr/share/logstash/data" must be a writable directory.

---

<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 29, 2021, 10:36am UTC](https://discuss.elastic.co/t/could-not-find-the-logstash-yml/274614/2 "2021-06-29T10:36:16Z")

</div>

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