# Vertical Bar Graph not showing accurate data

**URL:** <https://discuss.elastic.co/t/vertical-bar-graph-not-showing-accurate-data/189821>\
**Category:** Kibana\
**Tags:** elastic-stack-graph\
**Created:** [July 10, 2019, 4:02pm UTC](https://discuss.elastic.co/t/vertical-bar-graph-not-showing-accurate-data/189821 "2019-07-10T16:02:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![syedsfayaz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syedsfayaz/32/46657_2.png) [@syedsfayaz](https://discuss.elastic.co/u/syedsfayaz)\
**Post date:** [July 10, 2019, 4:02pm UTC](https://discuss.elastic.co/t/vertical-bar-graph-not-showing-accurate-data/189821/1 "2019-07-10T16:02:51Z")

</div>

Hi

I am using ELK 7.2. I have configured kibana to monitor number of users hitting our internal environments on both windows and linux.

The issue am having here is.

if I set the time frame to see all the environments hit in last 1 hour I see two servers in the list as you see in the image you can see (75063 and 75067).

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/4/543fd812a494454ae62e4efdc884830d9465f870.png)

But when I change the time frame to 24 hours. I see a different server in the list and I dont see the server names which I got in last 1 hours which is not correct. If I choose 24 hours it must show those server names as well which come in 1 hour interval.

Here I don't see (75067) which I saw in the previous graph for last 1 hour interval.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/f/0fa847240068c99669662282509511427c2f39a2.png)

Please correct me what's wrong in my configuration. Below is my configuration for the graph.

![image](https://us1.discourse-cdn.com/elastic/original/3X/1/b/1b90d60e4f8ed2d5c766920ad6bd515aa73e5093.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/7/c7d1b6489295f6b42c8e908a203d5f9d25bf31bc.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/0/708c90b35ab815aafe16d0dfb35da85e1acd5c0b.png)

Metric & Axis

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/7/47df48f9f458de12f1b46ca6376f2e70e0dba337.png)

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [July 10, 2019, 6:13pm UTC](https://discuss.elastic.co/t/vertical-bar-graph-not-showing-accurate-data/189821/2 "2019-07-10T18:13:04Z")

</div>

You terms aggregation is only returning the top host because `Size` is set to 1. Terms aggregation will only return the top buckets as configured by size. When you expand your time range, then the buckets you get for a smaller time range may no longer be in the top buckets for the larger time range.

How many hosts do you have? Increase `Size` to that number if the number is not huge.

---

<div class="post-metadata">

**Author:** ![syedsfayaz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syedsfayaz/32/46657_2.png) [@syedsfayaz](https://discuss.elastic.co/u/syedsfayaz)\
**Post date:** [July 10, 2019, 6:14pm UTC](https://discuss.elastic.co/t/vertical-bar-graph-not-showing-accurate-data/189821/3 "2019-07-10T18:14:49Z")

</div>

I have almost 200 hosts but I am adding filter to separate hosts per environment. So there will be 20 hosts per environment.

---

<div class="post-metadata">

**Author:** ![syedsfayaz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syedsfayaz/32/46657_2.png) [@syedsfayaz](https://discuss.elastic.co/u/syedsfayaz)\
**Post date:** [July 10, 2019, 6:22pm UTC](https://discuss.elastic.co/t/vertical-bar-graph-not-showing-accurate-data/189821/4 "2019-07-10T18:22:01Z")

</div>

@Nathan_Reese  
I changed it to some higher number still It doesn't work.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/d/cd8d28e465a338547d566482940c62df48328900.png)

---

<div class="post-metadata">

**Author:** ![syedsfayaz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syedsfayaz/32/46657_2.png) [@syedsfayaz](https://discuss.elastic.co/u/syedsfayaz)\
**Post date:** [July 11, 2019, 11:59pm UTC](https://discuss.elastic.co/t/vertical-bar-graph-not-showing-accurate-data/189821/5 "2019-07-11T23:59:17Z")

</div>

HI @Nathan_Reese Can you please help me. I am not seeing correct data on the graph.

I tried to see the count of users on different servers it showing as one server for last 24 hours.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/b/bb65361e1488029dc35b17614dc40e90dcf21d04.png)

But where as when I got to discover and tried to add the same filter it shows a different result as you see in the image.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/7/a73df1ab6f51ebe826ce8f0d4b23c4b532fe59f9.png)

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [July 12, 2019, 12:17am UTC](https://discuss.elastic.co/t/vertical-bar-graph-not-showing-accurate-data/189821/6 "2019-07-12T00:17:56Z")

</div>

Discover shows documents while visualize shows aggregated results. That is why you are seeing the difference. Maybe split your visualization by host?

---

<div class="post-metadata">

**Author:** ![syedsfayaz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syedsfayaz/32/46657_2.png) [@syedsfayaz](https://discuss.elastic.co/u/syedsfayaz)\
**Post date:** [July 12, 2019, 1:32am UTC](https://discuss.elastic.co/t/vertical-bar-graph-not-showing-accurate-data/189821/7 "2019-07-12T01:32:51Z")

</div>

@Nathan_Reese  
I am splitting the chart by agent.hostname. Is this not the correct way. Can you please correct me.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/4/b4c29b3ac756d02bf4a4bbb2e3a7290f12cf66a5.png)

---

<div class="post-metadata">

**Author:** ![syedsfayaz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syedsfayaz/32/46657_2.png) [@syedsfayaz](https://discuss.elastic.co/u/syedsfayaz)\
**Post date:** [July 12, 2019, 5:26pm UTC](https://discuss.elastic.co/t/vertical-bar-graph-not-showing-accurate-data/189821/8 "2019-07-12T17:26:18Z")

</div>

@Stacey_Gammon Sorry to include you here. But can you please help me with this. I believe the bar graph is not showing the correct data.

---

<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:** [August 9, 2019, 5:26pm UTC](https://discuss.elastic.co/t/vertical-bar-graph-not-showing-accurate-data/189821/9 "2019-08-09T17:26:27Z")

</div>

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