# Long running search tasks and the index.search.slowlog.threshold.query.warn setting

**URL:** <https://discuss.elastic.co/t/long-running-search-tasks-and-the-index-search-slowlog-threshold-query-warn-setting/199734>\
**Category:** Elasticsearch\
**Created:** [September 16, 2019, 10:27pm UTC](https://discuss.elastic.co/t/long-running-search-tasks-and-the-index-search-slowlog-threshold-query-warn-setting/199734 "2019-09-16T22:27:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![o1o1o11o1](https://avatars.discourse-cdn.com/v4/letter/o/74df32/32.png) [@o1o1o11o1](https://discuss.elastic.co/u/o1o1o11o1)\
**Post date:** [September 16, 2019, 10:27pm UTC](https://discuss.elastic.co/t/long-running-search-tasks-and-the-index-search-slowlog-threshold-query-warn-setting/199734/1 "2019-09-16T22:27:40Z")

</div>

I have set `index.search.slowlog.threshold.query.warn` to 60s to catch some slow searches, however even though I see search tasks running for more than 120 seconds, I don't see anything in the slow logs on any of data nodes. What am I missing ?

---

<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 14, 2019, 10:27pm UTC](https://discuss.elastic.co/t/long-running-search-tasks-and-the-index-search-slowlog-threshold-query-warn-setting/199734/2 "2019-10-14T22:27:41Z")

</div>

Closed on October 14, 2019, 10:27pm UTC

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