# ERROR StatusLogger No log4j2 configuration file found

**URL:** https://discuss.elastic.co/t/error-statuslogger-no-log4j2-configuration-file-found/73208
**Category:** Elasticsearch
**Created:** [January 30, 2017, 12:26pm UTC](https://discuss.elastic.co/t/error-statuslogger-no-log4j2-configuration-file-found/73208 "2017-01-30T12:26:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sharongur](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@sharongur](https://discuss.elastic.co/u/sharongur)
#### Post date: [January 30, 2017, 12:26pm UTC](https://discuss.elastic.co/t/error-statuslogger-no-log4j2-configuration-file-found/73208/1 "2017-01-30T12:26:42Z")

</div>

when i run a small java client to insert some data i get this error

> "ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.  
> "

I read questions here and did add a log4j2.xml into src/main/resources on my maven project and i still get the same error.

i also saw the elastic itself has a log4j.properties in the conf folder... why isnt it using this file?

what else can i do?

Thanks,  
Sharon Gur

---

<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: [January 30, 2017, 12:56pm UTC](https://discuss.elastic.co/t/error-statuslogger-no-log4j2-configuration-file-found/73208/2 "2017-01-30T12:56:58Z")

</div>

Unsure but here are some docs about what to do: [https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/\_log4j\_2\_logger.html](https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/_log4j_2_logger.html)

---

<div class="post-metadata">

### Author: ![sharongur](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@sharongur](https://discuss.elastic.co/u/sharongur)
#### Post date: [January 30, 2017, 12:59pm UTC](https://discuss.elastic.co/t/error-statuslogger-no-log4j2-configuration-file-found/73208/3 "2017-01-30T12:59:26Z")

</div>

ok i solved the problem thank you...  
I created a folder with upper case Resource instead of lower case. silly me..

---

<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: [February 27, 2017, 12:59pm UTC](https://discuss.elastic.co/t/error-statuslogger-no-log4j2-configuration-file-found/73208/4 "2017-02-27T12:59:37Z")

</div>

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