# How to change elasticsearch.slowlog.id?

**URL:** <https://discuss.elastic.co/t/how-to-change-elasticsearch-slowlog-id/335184>\
**Category:** Elasticsearch\
**Created:** [June 5, 2023, 6:43am UTC](https://discuss.elastic.co/t/how-to-change-elasticsearch-slowlog-id/335184 "2023-06-05T06:43:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ghouneim](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@Ghouneim](https://discuss.elastic.co/u/Ghouneim)\
**Post date:** [June 5, 2023, 6:43am UTC](https://discuss.elastic.co/t/how-to-change-elasticsearch-slowlog-id/335184/1 "2023-06-05T06:43:52Z")

</div>

Hello,

I want to be able to track the user who send the \_bulk request for indexing some data so I am trying to use `X-Opaque-Id` in bulk requests to be displayed in \*\_index\_indexing\_slowlog.json but I always get a different Id ( I think ID of created document ).

Do I use the right approach for it ?  
if no is there another way ?

Thanks

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [June 7, 2023, 10:14am UTC](https://discuss.elastic.co/t/how-to-change-elasticsearch-slowlog-id/335184/2 "2023-06-07T10:14:16Z")

</div>

Hi @Ghouneim,

Welcome to the community! Having a look at the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-slowlog.html#_identifying_search_slow_log_origin) it looks like triggering queries using the `X-Opaque-Id` header is the way to track the user.

Are you looking to use this feature in the search or indexing slowlog? I've come across a [GitHub issue](https://github.com/elastic/elasticsearch/issues/44811) that says this is available in the query but not indexing slowlog, which might be your problem looking at the index name.

---

<div class="post-metadata">

**Author:** ![Ghouneim](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@Ghouneim](https://discuss.elastic.co/u/Ghouneim)\
**Post date:** [June 8, 2023, 1:30pm UTC](https://discuss.elastic.co/t/how-to-change-elasticsearch-slowlog-id/335184/3 "2023-06-08T13:30:25Z")

</div>

Hi @carly.richmond  
Yes I am looking to use in indexing\_slowlog, but it seems it will not be supported. right ?

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [June 8, 2023, 3:25pm UTC](https://discuss.elastic.co/t/how-to-change-elasticsearch-slowlog-id/335184/4 "2023-06-08T15:25:07Z")

</div>

It doesn't look to be from what I can see. If it's something you need I would recommend raising a [GitHub feature request](https://github.com/elastic/elasticsearch/issues/new/choose) to discuss further, or even contribute the change back.

---

<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 6, 2023, 3:25pm UTC](https://discuss.elastic.co/t/how-to-change-elasticsearch-slowlog-id/335184/5 "2023-07-06T15:25:26Z")

</div>

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