# How to view elasticsearch debug logs?

**URL:** <https://discuss.elastic.co/t/how-to-view-elasticsearch-debug-logs/288922>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [November 10, 2021, 7:07pm UTC](https://discuss.elastic.co/t/how-to-view-elasticsearch-debug-logs/288922 "2021-11-10T19:07:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![x00m](https://avatars.discourse-cdn.com/v4/letter/x/90db22/32.png) [@x00m](https://discuss.elastic.co/u/x00m)\
**Post date:** [November 10, 2021, 7:07pm UTC](https://discuss.elastic.co/t/how-to-view-elasticsearch-debug-logs/288922/1 "2021-11-10T19:07:23Z")

</div>

I need to see some logs about every http request that's coming in to Elasticsearch.  
I am using the ECK operator 1.8.0  
I configured the log level to be trace for Elasticsearch but the logs from the _-es-default-_ still dont contain logs for every http request that comes in to Elasticsearch.

How can i see the logs of the http requests coming into Elasticsearch provisioned by the eck operator?

---

<div class="post-metadata">

**Author:** ![Thibault\_Richard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thibault_richard/32/50513_2.png) [@Thibault\_Richard](https://discuss.elastic.co/u/Thibault_Richard)\
**Post date:** [November 15, 2021, 1:40pm UTC](https://discuss.elastic.co/t/how-to-view-elasticsearch-debug-logs/288922/2 "2021-11-15T13:40:51Z")

</div>

> I configured the log level to be trace

How did you proceed?

If you want all incoming HTTP requests, the Elasticsearch HTTP layer has a tracer logger which can be dynamically activated:

```auto
/_cluster/settings -XPUT -d '{
    "transient": {
        "logger.org.elasticsearch.http.HttpTracer": "TRACE"
    }
}'

```

Note: in the next ECK 1.9.0, we have added on the ECK operator side all HTTP requests made to Elasticsearch at the debug level ([Elasticsearch HTTP client: log requests at debug level · Issue #4935 · elastic/cloud-on-k8s · GitHub](https://github.com/elastic/cloud-on-k8s/issues/4935)).

---

<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:** [December 13, 2021, 1:41pm UTC](https://discuss.elastic.co/t/how-to-view-elasticsearch-debug-logs/288922/3 "2021-12-13T13:41:13Z")

</div>

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