# Visualizing Overall Max 'Num of Events per Second' in Hour Buckets

**URL:** <https://discuss.elastic.co/t/visualizing-overall-max-num-of-events-per-second-in-hour-buckets/366893>\
**Category:** Kibana\
**Tags:** visualisation\
**Created:** [September 20, 2024, 9:15pm UTC](https://discuss.elastic.co/t/visualizing-overall-max-num-of-events-per-second-in-hour-buckets/366893 "2024-09-20T21:15:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Austin\_R](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Austin\_R](https://discuss.elastic.co/u/Austin_R)\
**Post date:** [September 20, 2024, 9:15pm UTC](https://discuss.elastic.co/t/visualizing-overall-max-num-of-events-per-second-in-hour-buckets/366893/1 "2024-09-20T21:15:46Z")

</div>

I've got multiple events that come in every second to couple of seconds and I'm looking to...

- Count the number of events that come in for each second
- Group those 'events per second' in buckets of of an hour
- Get the overall max of those 'events per second' for each 'hour' bucket
- And visualize each overall max per hour

I feel like it should be possible to do this in a visualization, but I've tried a number of approaches and none of them seem to give me the correct graph. No matter what I try it seems to keep grouping the count of events per hour and displaying that in the graph.

---

<div class="post-metadata">

**Author:** ![Austin\_R](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Austin\_R](https://discuss.elastic.co/u/Austin_R)\
**Post date:** [September 20, 2024, 11:30pm UTC](https://discuss.elastic.co/t/visualizing-overall-max-num-of-events-per-second-in-hour-buckets/366893/2 "2024-09-20T23:30:02Z")

</div>

I figured out a solution. It required creating a Transform with a field that counted events per second, using the field from that transform to create the 'Hour Buckets', and then run a Max metric on that new Transform field.
