# INFO: Windows, Logstash and could not find log4j2 configuration

**URL:** <https://discuss.elastic.co/t/info-windows-logstash-and-could-not-find-log4j2-configuration/67633>\
**Category:** Logstash\
**Created:** [November 30, 2016, 2:56pm UTC](https://discuss.elastic.co/t/info-windows-logstash-and-could-not-find-log4j2-configuration/67633 "2016-11-30T14:56:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juliann](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@juliann](https://discuss.elastic.co/u/juliann)\
**Post date:** [November 30, 2016, 2:56pm UTC](https://discuss.elastic.co/t/info-windows-logstash-and-could-not-find-log4j2-configuration/67633/1 "2016-11-30T14:56:00Z")

</div>

I was getting a message others seem to get with a Windows installation:

`Could not find log4j2 configuration at path /logstash-5.0.1/config/log4j2.properties. Using default config which logs to console`

My logstash is installed in c:\logstash-5.0.1

The solutions for me were either to create an Environment Variable in Windows `LS_SETTINGS_DIR` and set it to:

`/c:/logstash-5.0.1/config`

(notice - leading forward slash and all slashes are unix style not Windows style backslashes)

or to invoke logslash with `--path.settings=/c:/logstash-5.0.1/config/`

(again note position and direction of slashes)

I hope that this helps someone avoid the Googling and testing I have just done!

---

<div class="post-metadata">

**Author:** ![sjivan](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@sjivan](https://discuss.elastic.co/u/sjivan)\
**Post date:** [December 1, 2016, 1:56am UTC](https://discuss.elastic.co/t/info-windows-logstash-and-could-not-find-log4j2-configuration/67633/2 "2016-12-01T01:56:03Z")

</div>

Thanks. This was bothering me as well and definitely helped avoid googling.

---

<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:** [December 29, 2016, 1:56am UTC](https://discuss.elastic.co/t/info-windows-logstash-and-could-not-find-log4j2-configuration/67633/3 "2016-12-29T01:56:03Z")

</div>

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