# How to set client.transport to TRACE

**URL:** <https://discuss.elastic.co/t/how-to-set-client-transport-to-trace/28264>\
**Category:** Elasticsearch\
**Created:** [August 28, 2015, 6:26pm UTC](https://discuss.elastic.co/t/how-to-set-client-transport-to-trace/28264 "2015-08-28T18:26:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmu3](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@gmu3](https://discuss.elastic.co/u/gmu3)\
**Post date:** [August 28, 2015, 6:26pm UTC](https://discuss.elastic.co/t/how-to-set-client-transport-to-trace/28264/1 "2015-08-28T18:26:05Z")

</div>

How do I set the logging level for client.transport to TRACE in the java api? I've tried passing in the immutable settings with .put("client.transport", "TRACE") and it doesn't seem to have an effect.

It doesn't seem like something I would set in the node settings because it's the client transport client logs I want not the node logs although I also tried to set it in the node and it didn't seem to have an effect either.

Thanks!  
gmu

---

<div class="post-metadata">

**Author:** ![gmu3](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@gmu3](https://discuss.elastic.co/u/gmu3)\
**Post date:** [September 22, 2015, 5:45pm UTC](https://discuss.elastic.co/t/how-to-set-client-transport-to-trace/28264/2 "2015-09-22T17:45:21Z")

</div>

You need to set it in your general log configuration (which in my case was managed by log4j).

ESLoggerFactory.getRootLogger().setLevel("TRACE") or Logger.getLogger("client.transport").setLevel(Level.TRACE) might work too

---

<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, 11:48pm UTC](https://discuss.elastic.co/t/how-to-set-client-transport-to-trace/28264/3 "2017-07-05T23:48:46Z")

</div>


