# Elasticsearch 7.3 logging hierarchies and levels

**URL:** <https://discuss.elastic.co/t/elasticsearch-7-3-logging-hierarchies-and-levels/199483>\
**Category:** Elasticsearch\
**Created:** [September 13, 2019, 9:35pm UTC](https://discuss.elastic.co/t/elasticsearch-7-3-logging-hierarchies-and-levels/199483 "2019-09-13T21:35:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdamico](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gdamico/32/54015_2.png) [@gdamico](https://discuss.elastic.co/u/gdamico)\
**Post date:** [September 13, 2019, 9:35pm UTC](https://discuss.elastic.co/t/elasticsearch-7-3-logging-hierarchies-and-levels/199483/1 "2019-09-13T21:35:17Z")

</div>

Hi,

I'd like to get a greater detail on discovery process when a node starts. I found this: [ES 7.3 Logging configuration](https://www.elastic.co/guide/en/elasticsearch/reference/current/logging.html#configuring-logging-levels)

So, I think this is the best approach:  
`./bin/elasticsearch -E <name of logging hierarchy>=<level>`

My problem: I can't find documentation about the valid hierarchies and levels. Where can I find it? What's the right hierarchy and level for my purpose?

Reading the `log4j2.properties` file I found some posible hierarchies, but I'd like to be sure.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [September 13, 2019, 9:48pm UTC](https://discuss.elastic.co/t/elasticsearch-7-3-logging-hierarchies-and-levels/199483/2 "2019-09-13T21:48:51Z")

</div>

The log levels are the [standard Log4J levels](https://logging.apache.org/log4j/2.x/manual/customloglevels.html) (`ERROR`, `WARN`, `INFO` and so on). The logging hierarchy is tied closely to the package hierarchy in the source code. It can change quite substantially between versions as code moves around, so it's deliberate that there's not really any other documentation about it.

The discovery process in 7.3 is pretty much all under `org.elasticsearch.discovery` so you could try setting `logger.org.elasticsearch.discovery` to `TRACE`. As well as configuring a logger on the command line you can add `logger.org.elasticsearch.discovery: TRACE` to your `elasticsearch.yml` or even set it dynamically through the API:

```auto
PUT /_cluster/settings
{"persistent":{"logger.org.elasticsearch.discovery":"TRACE"}}

```

---

<div class="post-metadata">

**Author:** ![gdamico](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gdamico/32/54015_2.png) [@gdamico](https://discuss.elastic.co/u/gdamico)\
**Post date:** [September 17, 2019, 9:49pm UTC](https://discuss.elastic.co/t/elasticsearch-7-3-logging-hierarchies-and-levels/199483/3 "2019-09-17T21:49:07Z")

</div>

Thanks a lot for your reply!

---

<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:** [October 15, 2019, 9:49pm UTC](https://discuss.elastic.co/t/elasticsearch-7-3-logging-hierarchies-and-levels/199483/4 "2019-10-15T21:49:11Z")

</div>

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