# Logging in ES Hadoop Jar

**URL:** <https://discuss.elastic.co/t/logging-in-es-hadoop-jar/49870>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [May 12, 2016, 9:02am UTC](https://discuss.elastic.co/t/logging-in-es-hadoop-jar/49870 "2016-05-12T09:02:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bijuv\_V](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@Bijuv\_V](https://discuss.elastic.co/u/Bijuv_V)\
**Post date:** [May 12, 2016, 9:02am UTC](https://discuss.elastic.co/t/logging-in-es-hadoop-jar/49870/1 "2016-05-12T09:02:52Z")

</div>

We are using ESHadoop2.1.0 jar inside the Hadoop environment to sync the data from the Hadoop to elastic search. We are facing some issues in the data flow and hence wanted to enable the debugging of the ES Hadoop flow. I went through the code and figured out the logger statements that need to be added.

I added the following in the Oozie log config through Ambari.

log4j.logger.org.elasticsearch.hadoop.rest=DEBUG, oozie  
log4j.logger.org.elasticsearch.hadoop.hive=DEBUG, oozie  
log4j.logger.org.elasticsearch.hadoop.mr=DEBUG, oozie

And I executed the hql through oozie.

The issue that I face is that the logs are not printed or printed it somewhere else.

Can you please help me with these ?

a. Are the log4j statements correct? I need to track the rest calls made to ES. Also want to know the processing that is happening.

b. Also , where do I set the log4j statements. I execute the hql through a oozie workflow.

c. Where can I see the logs printed.

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [May 18, 2016, 6:55am UTC](https://discuss.elastic.co/t/logging-in-es-hadoop-jar/49870/2 "2016-05-18T06:55:12Z")

</div>

The docs provide a dedicated section on logging.  
Since es-hadoop is a library, the logs show up on the nodes where the task is running. This is true for all jars/libraries and it is not specific for ES-Hadoop.

---

<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 6, 2017, 1:24pm UTC](https://discuss.elastic.co/t/logging-in-es-hadoop-jar/49870/3 "2017-07-06T13:24:41Z")

</div>


