# Add tag to queries for slowlog

**URL:** <https://discuss.elastic.co/t/add-tag-to-queries-for-slowlog/375777>\
**Category:** Elasticsearch\
**Created:** [March 12, 2025, 11:38am UTC](https://discuss.elastic.co/t/add-tag-to-queries-for-slowlog/375777 "2025-03-12T11:38:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)\
**Post date:** [March 12, 2025, 11:38am UTC](https://discuss.elastic.co/t/add-tag-to-queries-for-slowlog/375777/1 "2025-03-12T11:38:41Z")

</div>

Looking back to this thread I would like to know if there is any news about this topic.  
Is there a way to add a "tag" to queries which end up in the ES index\_search\_slowlogs?  
Generally, if I enable slowlog I have to look at hundreds thousands of messages, divided by shards. I would like to collapse them or aggregate them using a hook. How can I do that?
