# Kibana hits are different from docs.count

**URL:** <https://discuss.elastic.co/t/kibana-hits-are-different-from-docs-count/63819>\
**Category:** Kibana\
**Created:** [October 25, 2016, 3:29am UTC](https://discuss.elastic.co/t/kibana-hits-are-different-from-docs-count/63819 "2016-10-25T03:29:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [October 25, 2016, 3:29am UTC](https://discuss.elastic.co/t/kibana-hits-are-different-from-docs-count/63819/1 "2016-10-25T03:29:22Z")

</div>

I'm using Elasticsearch, Logstash, Kibana (ELK) Docker image (elk-docker) and while accessing Kibana "hits" count shows less of the number then docs.count via ([http://127.0.0.1:9200/\_cat/indices?v](http://127.0.0.1:9200/_cat/indices?v)). I selected "Last 5 years")

Please advise.

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [October 25, 2016, 9:06pm UTC](https://discuss.elastic.co/t/kibana-hits-are-different-from-docs-count/63819/2 "2016-10-25T21:06:24Z")

</div>

There are all sorts of things that could be happening, but I'm not sure based on the context. The number kibana reports is the number that elasticsearch sends back, so if it's incorrect it might be a strange elasticsearch behavior.

---

<div class="post-metadata">

**Author:** ![unicolet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/unicolet/32/8663_2.png) [@unicolet](https://discuss.elastic.co/u/unicolet)\
**Post date:** [October 26, 2016, 5:36am UTC](https://discuss.elastic.co/t/kibana-hits-are-different-from-docs-count/63819/3 "2016-10-26T05:36:49Z")

</div>

Unless indexing was stopped while doing the two queries the difference could be in the docs that came in in the last moments since the Kibana query.

Also make sure Kibana does not subtract a small fixed delta to what it considers `now` by inspecting the query sent to ES.

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [October 29, 2016, 1:14am UTC](https://discuss.elastic.co/t/kibana-hits-are-different-from-docs-count/63819/4 "2016-10-29T01:14:53Z")

</div>

Any ideas how to pinpoint records that are not shown by Kibana?

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [October 29, 2016, 1:16am UTC](https://discuss.elastic.co/t/kibana-hits-are-different-from-docs-count/63819/5 "2016-10-29T01:16:11Z")

</div>

this is reproducible on my end... it's off by a lot not a little..

---

<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:35pm UTC](https://discuss.elastic.co/t/kibana-hits-are-different-from-docs-count/63819/6 "2017-07-06T13:35:08Z")

</div>


