# Update stats

**URL:** <https://discuss.elastic.co/t/update-stats/110667>\
**Category:** Elasticsearch\
**Created:** [December 7, 2017, 12:19pm UTC](https://discuss.elastic.co/t/update-stats/110667 "2017-12-07T12:19:57Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [December 7, 2017, 12:19pm UTC](https://discuss.elastic.co/t/update-stats/110667/1 "2017-12-07T12:19:58Z")

</div>

How can i find out how often documents were updated via the \_stats request?

can't find it, so i'm guessing it could be the get.exists\_total value of the \_stats request since at every update there has to be a request whether the document exists

```
"get" : {
        "total" : 2059140,
        "time_in_millis" : 408707,
        "exists_total" : 1423198,
        "exists_time_in_millis" : 356269,
        "missing_total" : 635942,
        "missing_time_in_millis" : 52438,
        "current" : 0
      },

```

Thanks in advance

---

<div class="post-metadata">

**Author:** ![s1monw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s1monw/32/3637_2.png) [@s1monw](https://discuss.elastic.co/u/s1monw)\
**Post date:** [December 15, 2017, 10:31am UTC](https://discuss.elastic.co/t/update-stats/110667/2 "2017-12-15T10:31:56Z")

</div>

you can use this but it might also contain get requests that are coming from an API. There is no stats endpoint that only counts updates.

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [December 18, 2017, 4:11pm UTC](https://discuss.elastic.co/t/update-stats/110667/3 "2017-12-18T16:11:57Z")

</div>

thanks!  
another way would be comparing the number of **indexing.index\_total** to **doc.count** , given that i don't delete documents, right?

Best,  
Matthias

---

<div class="post-metadata">

**Author:** ![s1monw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s1monw/32/3637_2.png) [@s1monw](https://discuss.elastic.co/u/s1monw)\
**Post date:** [December 18, 2017, 4:15pm UTC](https://discuss.elastic.co/t/update-stats/110667/4 "2017-12-18T16:15:40Z")

</div>

you could but those stats might be out of sync if you are actively indexing.

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [December 18, 2017, 4:34pm UTC](https://discuss.elastic.co/t/update-stats/110667/5 "2017-12-18T16:34:18Z")

</div>

Ok, thanks

So there’s no reliable way to get the number of updates currently, right?

Best,  
Matthias

---

<div class="post-metadata">

**Author:** ![s1monw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s1monw/32/3637_2.png) [@s1monw](https://discuss.elastic.co/u/s1monw)\
**Post date:** [December 18, 2017, 9:14pm UTC](https://discuss.elastic.co/t/update-stats/110667/6 "2017-12-18T21:14:43Z")

</div>

well you could open an issue and we add it so you get it in the future. WDYT? Maybe you can even open a PR and add it? I am happy to help / guide

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [December 19, 2017, 7:52am UTC](https://discuss.elastic.co/t/update-stats/110667/7 "2017-12-19T07:52:13Z")

</div>

i'd be happy to help. a issue is the least i can do. a PR would be a great way to give back to the great software i enjoy working with every day. greatest blocker: lack of time, however, maybe you could give me a quick guide about the stats and how they're harvested?

---

<div class="post-metadata">

**Author:** ![s1monw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s1monw/32/3637_2.png) [@s1monw](https://discuss.elastic.co/u/s1monw)\
**Post date:** [December 19, 2017, 8:05am UTC](https://discuss.elastic.co/t/update-stats/110667/8 "2017-12-19T08:05:05Z")

</div>

sure thing. lets open an issue, paste the link here and we take it from there.

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [December 19, 2017, 7:41pm UTC](https://discuss.elastic.co/t/update-stats/110667/9 "2017-12-19T19:41:11Z")

</div>

here we go:

> <https://github.com/elastic/elasticsearch/issues/27913>

---

<div class="post-metadata">

**Author:** ![s1monw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s1monw/32/3637_2.png) [@s1monw](https://discuss.elastic.co/u/s1monw)\
**Post date:** [December 20, 2017, 9:10am UTC](https://discuss.elastic.co/t/update-stats/110667/10 "2017-12-20T09:10:18Z")

</div>

thank you!

---

<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:** [January 17, 2018, 9:10am UTC](https://discuss.elastic.co/t/update-stats/110667/11 "2018-01-17T09:10:32Z")

</div>

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