# How to change the log4J level for the Java High Rest API client

**URL:** <https://discuss.elastic.co/t/how-to-change-the-log4j-level-for-the-java-high-rest-api-client/121107>\
**Category:** Elasticsearch\
**Created:** [February 22, 2018, 5:44pm UTC](https://discuss.elastic.co/t/how-to-change-the-log4j-level-for-the-java-high-rest-api-client/121107 "2018-02-22T17:44:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnnyhl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johnnyhl/32/28069_2.png) [@Johnnyhl](https://discuss.elastic.co/u/Johnnyhl)\
**Post date:** [February 22, 2018, 5:44pm UTC](https://discuss.elastic.co/t/how-to-change-the-log4j-level-for-the-java-high-rest-api-client/121107/1 "2018-02-22T17:44:19Z")

</div>

Hi all,  
when I'm running the Java high REST client I see all these logs:  
18:28:13.991 [I/O dispatcher 17] DEBUG org.apache.http.wire - http-outgoing-2 \<\< " ][\n]"  
18:28:13.991 [I/O dispatcher 17] DEBUG org.apache.http.wire - http-outgoing-2 \<\< " }[\n]"  
18:28:13.991 [I/O dispatcher 17] DEBUG org.apache.http.wire - http-outgoing-2 \<\< " ][\n]"  
18:28:13.991 [I/O dispatcher 17] DEBUG org.apache.http.wire - http-outgoing-2 \<\< " }[\n]"  
18:28:13.991 [I/O dispatcher 17] DEBUG org.apache.http.wire - http-outgoing-2 \<\< " ][\n]"  
18:28:13.991 [I/O dispatcher 17] DEBUG org.apache.http.wire - http-outgoing-2 \<\< " }[\n]"  
18:28:13.991 [I/O dispatcher 17] DEBUG org.apache.http.wire - http-outgoing-2 \<\< " }[\n]"  
18:28:13.991 [I/O dispatcher 17] DEBUG org.apache.http.wire - http-outgoing-2 \<\< " ][\n]"  
18:28:13.991 [I/O dispatcher 17] DEBUG org.apache.http.wire - http-outgoing-2 \<\< "}}"  
and I configured my log4j2.yml file like this

```
  - name: org.apache.http.wire
    level: info

```

But it does not work.

I'm obviously missing something, what is it please?

Best,  
jh

---

<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:** [March 22, 2018, 5:44pm UTC](https://discuss.elastic.co/t/how-to-change-the-log4j-level-for-the-java-high-rest-api-client/121107/2 "2018-03-22T17:44:46Z")

</div>

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