# How to show max count of last three days with 1 hour time bucket?

**URL:** <https://discuss.elastic.co/t/how-to-show-max-count-of-last-three-days-with-1-hour-time-bucket/275891>\
**Category:** Kibana\
**Created:** [June 14, 2021, 7:09pm UTC](https://discuss.elastic.co/t/how-to-show-max-count-of-last-three-days-with-1-hour-time-bucket/275891 "2021-06-14T19:09:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baragonte](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@baragonte](https://discuss.elastic.co/u/baragonte)\
**Post date:** [June 14, 2021, 7:09pm UTC](https://discuss.elastic.co/t/how-to-show-max-count-of-last-three-days-with-1-hour-time-bucket/275891/1 "2021-06-14T19:09:39Z")

</div>

I have to create a visualization where I want the peak of the number of docs by hour every day for the last 3 days. I was able to show the peak but I can't show the correct timestamp. Is there any way I can show the time too?  
We are running Kibana 6.8.8.

I put an example below:  
Let's say this is the data for June 1st:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/6/86ce6e8b82141da4d3e6efff4dd44c413ddcb31f.png)  
I need the output to be:  
2021-06-01 11:00 220  
At the moment I can only see  
2021-06-01 220

And I need one line a day with the max doc and the hour+day as above.  
I aggregate for "Max Bucket" , where the bucket is set Hourly.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 16, 2021, 12:22am UTC](https://discuss.elastic.co/t/how-to-show-max-count-of-last-three-days-with-1-hour-time-bucket/275891/2 "2021-06-16T00:22:49Z")

</div>

Welcome to our community! 😃

> [@baragonte](#):
>
> but I can't show the correct timestamp

Can you elaborate a little more on what you mean by this?

---

<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 14, 2021, 12:23am UTC](https://discuss.elastic.co/t/how-to-show-max-count-of-last-three-days-with-1-hour-time-bucket/275891/3 "2021-07-14T00:23:29Z")

</div>

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