# Kibana visualization problem with metrics-1m index

**URL:** <https://discuss.elastic.co/t/kibana-visualization-problem-with-metrics-1m-index/340668>\
**Category:** Elastic Observability\
**Created:** [August 11, 2023, 10:48pm UTC](https://discuss.elastic.co/t/kibana-visualization-problem-with-metrics-1m-index/340668 "2023-08-11T22:48:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arthurrita](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arthurrita/32/113800_2.png) [@arthurrita](https://discuss.elastic.co/u/arthurrita)\
**Post date:** [August 11, 2023, 10:48pm UTC](https://discuss.elastic.co/t/kibana-visualization-problem-with-metrics-1m-index/340668/1 "2023-08-11T22:48:13Z")

</div>

Hi!

This is my first post, sorry if I forgot something.

I'm trying to create a visualization with APM default Dataview (that has traces-apm\*, logs-apm\*, and metrics-apm\*). However, I'm facing a problem with the result of the count with and without aggregations in buckets.

For example, when I use the visualization without an aggregation in buckets, the result of the count is 80, the same value as we have in Discover with the same filters.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/0/307cefb266e06fee1143dcfcdb10f1b69acf9e8d.jpeg)

When I add a bucket with an aggregation by a term (or filter or other), the number resulting in this new count is bigger (140+) than the before result, without changes in filters.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/4/94010875956d2651bed3d4f7e42ca73b1731f991.jpeg)

Trying to troubleshoot the problem, I discover that the problem probably is related to the metrics 1m index, because when I remove this index, the problem is solved (metrics-apm.service\_transaction.1m-default and others).  
Probably it occurs because of \_doc\_count into the doc in this index.

My questions:

- Is this behavior of using the 1m metric indexes expected?
- Other metrics indexes like 10m and 60m are hidden, only the 1m ones are not. Could this be the problem??

Thanks!

---

<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:** [September 8, 2023, 10:48pm UTC](https://discuss.elastic.co/t/kibana-visualization-problem-with-metrics-1m-index/340668/2 "2023-09-08T22:48:17Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
