# Why does count by API the value different with Marvel?

**URL:** https://discuss.elastic.co/t/why-does-count-by-api-the-value-different-with-marvel/61092
**Category:** Elasticsearch
**Created:** [September 21, 2016, 8:37am UTC](https://discuss.elastic.co/t/why-does-count-by-api-the-value-different-with-marvel/61092 "2016-09-21T08:37:43Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![hubo3085632](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hubo3085632/32/23724_2.png) [@hubo3085632](https://discuss.elastic.co/u/hubo3085632)
#### Post date: [September 21, 2016, 8:37am UTC](https://discuss.elastic.co/t/why-does-count-by-api-the-value-different-with-marvel/61092/1 "2016-09-21T08:37:43Z")

</div>

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

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

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [September 21, 2016, 4:47pm UTC](https://discuss.elastic.co/t/why-does-count-by-api-the-value-different-with-marvel/61092/2 "2016-09-21T16:47:54Z")

</div>

Hey,

the count at the top of kibana is across all indices, not just the one you specified - if thats what you mean.

--Alex

---

<div class="post-metadata">

### Author: ![hubo3085632](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hubo3085632/32/23724_2.png) [@hubo3085632](https://discuss.elastic.co/u/hubo3085632)
#### Post date: [September 22, 2016, 1:00am UTC](https://discuss.elastic.co/t/why-does-count-by-api-the-value-different-with-marvel/61092/3 "2016-09-22T01:00:04Z")

</div>

that's true,but i have selected the index which i'm looking for.

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [September 27, 2016, 8:23am UTC](https://discuss.elastic.co/t/why-does-count-by-api-the-value-different-with-marvel/61092/4 "2016-09-27T08:23:40Z")

</div>

that view does not change its count, it's still the total count no matter if you select an 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 5, 2017, 10:17pm UTC](https://discuss.elastic.co/t/why-does-count-by-api-the-value-different-with-marvel/61092/5 "2017-07-05T22:17:01Z")

</div>


