# Index \_stats index\_total should be calculated with scroll?

**URL:** <https://discuss.elastic.co/t/index-stats-index-total-should-be-calculated-with-scroll/312085>\
**Category:** Elasticsearch\
**Created:** [August 15, 2022, 10:55am UTC](https://discuss.elastic.co/t/index-stats-index-total-should-be-calculated-with-scroll/312085 "2022-08-15T10:55:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kin122](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kin122/32/51521_2.png) [@kin122](https://discuss.elastic.co/u/kin122)\
**Post date:** [August 15, 2022, 10:55am UTC](https://discuss.elastic.co/t/index-stats-index-total-should-be-calculated-with-scroll/312085/1 "2022-08-15T10:55:52Z")

</div>

hi i monitors indices with \_stats API.  
i found index\_total affected by scroll  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/d/edde15f4063a4880473518230bf7d215b677b263.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/7/77146706ea7104e8c319c1d0354471364f1e5289.png)  
its calculated by irate of prometheus.  
How do I remove the effection of scroll to get the right statsdata？

---

<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:** [September 12, 2022, 10:56am UTC](https://discuss.elastic.co/t/index-stats-index-total-should-be-calculated-with-scroll/312085/2 "2022-09-12T10:56:16Z")

</div>

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