# Docs count in elasticsearch and hits in kibana don't match

**URL:** <https://discuss.elastic.co/t/docs-count-in-elasticsearch-and-hits-in-kibana-dont-match/50233>\
**Category:** Kibana\
**Created:** [May 17, 2016, 3:26pm UTC](https://discuss.elastic.co/t/docs-count-in-elasticsearch-and-hits-in-kibana-dont-match/50233 "2016-05-17T15:26:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkapur](https://avatars.discourse-cdn.com/v4/letter/n/848f3c/32.png) [@nkapur](https://discuss.elastic.co/u/nkapur)\
**Post date:** [May 17, 2016, 3:26pm UTC](https://discuss.elastic.co/t/docs-count-in-elasticsearch-and-hits-in-kibana-dont-match/50233/1 "2016-05-17T15:26:57Z")

</div>

I just started using elasticsearch and kibana this week.

Here is the document count of my index (day based):

-\> curl localhost:9200/\_cat/indices/squid-2016.05.15\*?v  
health status index pri rep docs.count docs.deleted store.size pri.store.size  
yellow open squid-2016.05.15 5 1 9039596 0 7.1gb 7.1gb

Here is what Kibana shows:  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/c/c2bab3e667f36d506c7fd7d878cac786f56c833e.JPG)

So why the difference in the count/hits? Notice the search bar in kibana does not have any query. I was expecting to see 9039596 hits but I see 9703102.

Can someone please help.

Thanks.

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [May 17, 2016, 4:01pm UTC](https://discuss.elastic.co/t/docs-count-in-elasticsearch-and-hits-in-kibana-dont-match/50233/2 "2016-05-17T16:01:48Z")

</div>

Hmm, this could possibly be a timezone issue. Which version of Kibana are you using?

I would recommend switching away from using an index pattern that uses the "Use event times to create index names" option, because it may produce unreliable results. Kibana is now intelligent enough when you use a wildcard index pattern to only query the indices associated with your given time range.

![](https://us1.discourse-cdn.com/elastic/original/2X/b/be6464309895b50cd04ddab4be718eff0bc7fd60.png)

---

<div class="post-metadata">

**Author:** ![nkapur](https://avatars.discourse-cdn.com/v4/letter/n/848f3c/32.png) [@nkapur](https://discuss.elastic.co/u/nkapur)\
**Post date:** [May 17, 2016, 4:07pm UTC](https://discuss.elastic.co/t/docs-count-in-elasticsearch-and-hits-in-kibana-dont-match/50233/3 "2016-05-17T16:07:40Z")

</div>

Hey Lucas,

Appreciate your quick response. I'm using Kibana 4.1.1

My index contains time-based events.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/e/e30f9232705cad9c96159e227ca953dd8930d387.JPG)

---

<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:53pm UTC](https://discuss.elastic.co/t/docs-count-in-elasticsearch-and-hits-in-kibana-dont-match/50233/4 "2017-07-06T13:53:12Z")

</div>


