# Quick Count feature

**URL:** <https://discuss.elastic.co/t/quick-count-feature/27423>\
**Category:** Kibana\
**Created:** [August 14, 2015, 6:16pm UTC](https://discuss.elastic.co/t/quick-count-feature/27423 "2015-08-14T18:16:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![allenmchan](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@allenmchan](https://discuss.elastic.co/u/allenmchan)\
**Post date:** [August 14, 2015, 6:16pm UTC](https://discuss.elastic.co/t/quick-count-feature/27423/1 "2015-08-14T18:16:30Z")

</div>

In the quick count feature of kibana, it shows you stats based on buckets on a field. Usually it is limited to 500 or whatever the system is configured to use. If the search returned 1 million records, it is only showing the stats for 500 records.

Does anyone how kibana chooses those 500 records? Is it the 500 newest records? or 500 oldest records?

Thanks

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [August 14, 2015, 9:56pm UTC](https://discuss.elastic.co/t/quick-count-feature/27423/2 "2015-08-14T21:56:02Z")

</div>

I think this is the same discussion as this thread: [Field statistics - sampling](https://discuss.elastic.co/t/field-statistics-sampling/27343/2)

---

<div class="post-metadata">

**Author:** ![allenmchan](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@allenmchan](https://discuss.elastic.co/u/allenmchan)\
**Post date:** [August 15, 2015, 1:17am UTC](https://discuss.elastic.co/t/quick-count-feature/27423/3 "2015-08-15T01:17:38Z")

</div>

Hi Tanya, i do not understand your statement  
"By default, for time-series data, those are the latest documents, but that also changes depending on what searches and filters you've applies in Discover."

How does searches and filters change how kibana chooses the 500 documents to sample?

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [August 17, 2015, 3:32pm UTC](https://discuss.elastic.co/t/quick-count-feature/27423/4 "2015-08-17T15:32:42Z")

</div>

So, if you apply a filter (say, search for the word "error"), now instead of looking at last 500 documents in an index, it will look at last 500 documents that match the filter (in this case, all documents that contain the word "error").

---

<div class="post-metadata">

**Author:** ![allenmchan](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@allenmchan](https://discuss.elastic.co/u/allenmchan)\
**Post date:** [August 17, 2015, 10:16pm UTC](https://discuss.elastic.co/t/quick-count-feature/27423/5 "2015-08-17T22:16:44Z")

</div>

That makes sense. Thanks!

---

<div class="post-metadata">

**Author:** ![shivam\_singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shivam_singh/32/4225_2.png) [@shivam\_singh](https://discuss.elastic.co/u/shivam_singh)\
**Post date:** [March 14, 2016, 10:25am UTC](https://discuss.elastic.co/t/quick-count-feature/27423/6 "2016-03-14T10:25:43Z")

</div>

Hi,

Can we somehow configure the quick count to show all the distinct values stored in elastisearch for that particular index?

---

<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:59pm UTC](https://discuss.elastic.co/t/quick-count-feature/27423/7 "2017-07-06T13:59:13Z")

</div>


