# WARNING: Could not find logstash.yml cannot found

**URL:** https://discuss.elastic.co/t/warning-could-not-find-logstash-yml-cannot-found/131013
**Category:** Logstash
**Created:** [May 8, 2018, 1:30pm UTC](https://discuss.elastic.co/t/warning-could-not-find-logstash-yml-cannot-found/131013 "2018-05-08T13:30:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sayed\_mohamed](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sayed\_mohamed](https://discuss.elastic.co/u/sayed_mohamed)
#### Post date: [May 8, 2018, 1:30pm UTC](https://discuss.elastic.co/t/warning-could-not-find-logstash-yml-cannot-found/131013/1 "2018-05-08T13:30:05Z")

</div>

i have a problem that i run file as command : sudo bin/logstash --path.data sensor38 -f /home/sayed/logstash/sayed.conf  
and i have an warning that i set some configuration on it  
WARNING: 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  
so i need help and i did every thing that related this topic but no vain

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [May 8, 2018, 1:41pm UTC](https://discuss.elastic.co/t/warning-could-not-find-logstash-yml-cannot-found/131013/2 "2018-05-08T13:41:22Z")

</div>

Moving to #logstash. Please don't use english in #in-your-native-tongue:discussions-en-francais room as it is meant to be in french.

---

<div class="post-metadata">

### Author: ![sayed\_mohamed](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sayed\_mohamed](https://discuss.elastic.co/u/sayed_mohamed)
#### Post date: [May 8, 2018, 2:11pm UTC](https://discuss.elastic.co/t/warning-could-not-find-logstash-yml-cannot-found/131013/3 "2018-05-08T14:11:29Z")

</div>

Ok , Thanks  
Done

---

<div class="post-metadata">

### Author: ![smbullet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smbullet/32/27833_2.png) [@smbullet](https://discuss.elastic.co/u/smbullet)
#### Post date: [May 8, 2018, 6:34pm UTC](https://discuss.elastic.co/t/warning-could-not-find-logstash-yml-cannot-found/131013/4 "2018-05-08T18:34:41Z")

</div>

Can you `ls /usr/share/logstash/config/` or `ls /etc/logstash` for us? That's where your `logstash.yml` and `log4j2.properties` should be by default. If they are not there they you need to use `--path.settings /path/to/my/configs/`

---

<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 5, 2018, 6:34pm UTC](https://discuss.elastic.co/t/warning-could-not-find-logstash-yml-cannot-found/131013/5 "2018-06-05T18:34:47Z")

</div>

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