# How to grab the trace for bulkprocessor

**URL:** <https://discuss.elastic.co/t/how-to-grab-the-trace-for-bulkprocessor/326149>\
**Category:** Elasticsearch\
**Created:** [February 22, 2023, 9:50am UTC](https://discuss.elastic.co/t/how-to-grab-the-trace-for-bulkprocessor/326149 "2023-02-22T09:50:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![INS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ins/32/92827_2.png) [@INS](https://discuss.elastic.co/u/INS)\
**Post date:** [February 22, 2023, 9:50am UTC](https://discuss.elastic.co/t/how-to-grab-the-trace-for-bulkprocessor/326149/1 "2023-02-22T09:50:05Z")

</div>

Hi I need to trace same stack for bulkprocessor

for tracing the cause of the error on elastic, why does the application get a timeout

```auto
ERROR e.i.u.r.i.BulkIndexingProcessorConfig - - Failed to execute bulk request. Reason: java.net.SocketTimeoutException: 

```

referring to code

> **[elasticsearch/server/src/main/java/org/elasticsearch/action/bulk at main ·...](https://github.com/elastic/elasticsearch/tree/main/server/src/main/java/org/elasticsearch/action/bulk)**
>
> main/server/src/main/java/org/elasticsearch/action/bulk

should I set below config the getting the trace?

```auto
PUT /_cluster/settings
{
  "transient": {
    "logger.action.?????????????: "trace"
  }
}

```

How should I troubleshoot such case?

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [February 23, 2023, 2:19pm UTC](https://discuss.elastic.co/t/how-to-grab-the-trace-for-bulkprocessor/326149/2 "2023-02-23T14:19:41Z")

</div>

I'm not completely sure I understand your question, but if you want to turn on trace logging for the code you linked to, you'd just do something like:

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

```

You'll want to be very careful doing that in production though, because it could cause a lot of logging.

---

<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:** [March 23, 2023, 2:20pm UTC](https://discuss.elastic.co/t/how-to-grab-the-trace-for-bulkprocessor/326149/3 "2023-03-23T14:20:23Z")

</div>

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