Java package logging trouble

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:

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) 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' 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?

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