# Elasticsearch java API log configuration

**URL:** https://discuss.elastic.co/t/elasticsearch-java-api-log-configuration/59334
**Category:** Elasticsearch
**Created:** [August 30, 2016, 3:43pm UTC](https://discuss.elastic.co/t/elasticsearch-java-api-log-configuration/59334 "2016-08-30T15:43:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![baud](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/baud/32/10129_2.png) [@baud](https://discuss.elastic.co/u/baud)
#### Post date: [August 30, 2016, 3:43pm UTC](https://discuss.elastic.co/t/elasticsearch-java-api-log-configuration/59334/1 "2016-08-30T15:43:45Z")

</div>

I am developing an application connecting to Elasticsearch with the java API.  
I am using lo4j2 to deal with logging.

I want to retrieve the messages logged by the java API, but I don't know how to configure to it.

Does anyone has any idea how to do

Version of the java API: 1.4.5  
From my pom.xml:

> ```
> <dependency>
> <groupId>org.elasticsearch</groupId>
> <artifactId>elasticsearch</artifactId>
> <version>1.4.5</version>
> </dependency>
> 
> ```

---

<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: [July 5, 2017, 10:23pm UTC](https://discuss.elastic.co/t/elasticsearch-java-api-log-configuration/59334/2 "2017-07-05T22:23:59Z")

</div>


