# Java package logging trouble

**URL:** <https://discuss.elastic.co/t/java-package-logging-trouble/185526>\
**Category:** Elasticsearch\
**Created:** [June 12, 2019, 11:08pm UTC](https://discuss.elastic.co/t/java-package-logging-trouble/185526 "2019-06-12T23:08:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SnakeByte](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@SnakeByte](https://discuss.elastic.co/u/SnakeByte)\
**Post date:** [June 12, 2019, 11:08pm UTC](https://discuss.elastic.co/t/java-package-logging-trouble/185526/1 "2019-06-12T23:08:00Z")

</div>

I'm attempting to troubleshoot a problem and am trying to configure ES to limit its trace output.

I started with logger.\_root: "trace" and saw what I need to look at, but want to limit it to just those lines.

For instance:

> [2019-06-12T22:44:06,459][TRACE][o.e.a.b.TransportShardBulkAction]

According to the "logging secrets" Elastic blog:

> **[Elasticsearch Logging Secrets](https://www.elastic.co/blog/elasticsearch-logging-secrets)**
>
> Tips for Elasticsearch logging: logs inside Groovy scripts, custom loggers, dynamically changing the root logger, index level slowlog settings, deprecation logging.

I should be able to limit the log output per Java package.  
Github ([https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/action/bulk/TransportShardBulkAction.java](https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/action/bulk/TransportShardBulkAction.java)) shows the full path to be:

> org.elasticsearch.action.bulk.TransportShardBulkAction

so, I tried the following:

```
PUT /_cluster/settings
{
  "transient": {
    "logger.action.bulk.TransportShardBulkAction": "trace"
  }
}

```

However, I saw no output. I also tried:

- logger.action.bulk
- logger.action
- logger.org.elasticsearch.action.bulk.TransportShardBulkAction
- logger.org.elasticsearch.action.bulk
- logger.org.elasticsearch.action

The only time I could get ES to output that content however was if I used '[logger.org](http://logger.org)' or 'logger.\_root' which seem to produce identical output.

What am I missing? The case of "trace/TRACE" doesn't seem to matter. Are there some packages where one cannot adjust the granularity of the output, or is that 2015 blog article stale?

---

<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 10, 2019, 11:08pm UTC](https://discuss.elastic.co/t/java-package-logging-trouble/185526/2 "2019-07-10T23:08:01Z")

</div>

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