# List of current active scrolls

**URL:** <https://discuss.elastic.co/t/list-of-current-active-scrolls/205302>\
**Category:** Elasticsearch\
**Created:** [October 25, 2019, 4:20pm UTC](https://discuss.elastic.co/t/list-of-current-active-scrolls/205302 "2019-10-25T16:20:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay224](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@jay224](https://discuss.elastic.co/u/jay224)\
**Post date:** [October 25, 2019, 4:20pm UTC](https://discuss.elastic.co/t/list-of-current-active-scrolls/205302/1 "2019-10-25T16:20:57Z")

</div>

Is there a way to know how many scroll\_ids are currently active and how long they have been running?

We want to know how many scrolls are currently running and clear long running scroll

-Thanks

---

<div class="post-metadata">

**Author:** ![Glen\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glen_smith/32/111656_2.png) [@Glen\_Smith](https://discuss.elastic.co/u/Glen_Smith)\
**Post date:** [October 25, 2019, 9:50pm UTC](https://discuss.elastic.co/t/list-of-current-active-scrolls/205302/2 "2019-10-25T21:50:50Z")

</div>

jay224,

According to [the docs for scroll searches](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/search-request-body.html#request-body-search-scroll),

> You can check how many search contexts are open with the [nodes stats API](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/cluster-nodes-stats.html).  
> `GET /_nodes/stats/indices/search`

The path in the response to the relevant data is `nodes.<node_ID>.indices.search.open_contexts`.

---

<div class="post-metadata">

**Author:** ![jay224](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@jay224](https://discuss.elastic.co/u/jay224)\
**Post date:** [October 29, 2019, 7:05pm UTC](https://discuss.elastic.co/t/list-of-current-active-scrolls/205302/3 "2019-10-29T19:05:13Z")

</div>

That will provide running search context at node level, but it won't provide the active scroll\_id(s) running on cluster at the time of running.

-Thanks

---

<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:** [November 26, 2019, 7:05pm UTC](https://discuss.elastic.co/t/list-of-current-active-scrolls/205302/4 "2019-11-26T19:05:14Z")

</div>

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