INFO: Windows, Logstash and could not find log4j2 configuration

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!

8 Likes

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

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