# Elasticsearch stats by groups return inconsistent values

**URL:** <https://discuss.elastic.co/t/elasticsearch-stats-by-groups-return-inconsistent-values/16812>\
**Category:** Elasticsearch\
**Created:** [April 3, 2014, 9:28pm UTC](https://discuss.elastic.co/t/elasticsearch-stats-by-groups-return-inconsistent-values/16812 "2014-04-03T21:28:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Igor\_Serko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_serko/32/1664_2.png) [@Igor\_Serko](https://discuss.elastic.co/u/Igor_Serko)\
**Post date:** [April 3, 2014, 9:28pm UTC](https://discuss.elastic.co/t/elasticsearch-stats-by-groups-return-inconsistent-values/16812/1 "2014-04-03T21:28:25Z")

</div>

Environment:

- 14 nodes
- 3 indices
- 15 mil documents
- ~70 queries/s

I'm querying Elasticsearch search stats on all indexes by stats groups using

curl [http://127.0.0.1:9200/\_all/\_stats/search?groups=\_all](http://127.0.0.1:9200/_all/_stats/search?groups=_all)

I take the query\_total values out of the results for each index and group,  
however I see that I get different results on every query I do.  
See examples at: [https://gist.github.com/iserko/9963195](https://gist.github.com/iserko/9963195)

I'm guessing the reason for this could be that it's only getting metrics  
from a few nodes instead of all of them.  
But if that's the case, can I wait in some way and make sure I have data  
from all the nodes?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8251b94c-3b04-4402-9fa0-1b6471616247%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8251b94c-3b04-4402-9fa0-1b6471616247%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:38am UTC](https://discuss.elastic.co/t/elasticsearch-stats-by-groups-return-inconsistent-values/16812/2 "2017-07-06T01:38:23Z")

</div>


