# Max enquiries made in second and minute yesterday/last week/last month

**URL:** <https://discuss.elastic.co/t/max-enquiries-made-in-second-and-minute-yesterday-last-week-last-month/234405>\
**Category:** Kibana\
**Created:** [May 26, 2020, 7:32pm UTC](https://discuss.elastic.co/t/max-enquiries-made-in-second-and-minute-yesterday-last-week-last-month/234405 "2020-05-26T19:32:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![edwardj3](https://avatars.discourse-cdn.com/v4/letter/e/d2c977/32.png) [@edwardj3](https://discuss.elastic.co/u/edwardj3)\
**Post date:** [May 26, 2020, 7:32pm UTC](https://discuss.elastic.co/t/max-enquiries-made-in-second-and-minute-yesterday-last-week-last-month/234405/1 "2020-05-26T19:32:33Z")

</div>

Hi community,

Using v7.6

Is it possible to identify and display the max enquiries made in a second and the time this occurred yesterday. Result should be like below if possible

Time Count  
23/04/2020 19:56:07 5

Is it possible to identify and display the max enquiries made in a minute and the time this occurred yesterday. Result should be like below if possible

Time Count  
23/04/2020 12:46:00 234

Is it possible to identify and display the max enquiries made in a second and the time this occurred last week. Result should be like below if possible

Time Count  
23/04/2020 19:56:07 5

Is it possible to identify and display the max enquiries made in a minute and the time this occurred last week. Result should be like below if possible

Time Count  
23/04/2020 12:46:00 234

Is it possible to identify and display the max enquiries made in a second and the time this occurred last month. Result should be like below if possible

Time Count  
23/04/2020 19:56:07 5

Is it possible to identify and display the max enquiries made in a minute and the time this occurred last month. Result should be like below if possible

Time Count  
23/04/2020 12:46:00 234

Thanks in advance

---

<div class="post-metadata">

**Author:** ![myasonik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/myasonik/32/62369_2.png) [@myasonik](https://discuss.elastic.co/u/myasonik)\
**Post date:** [May 27, 2020, 12:19am UTC](https://discuss.elastic.co/t/max-enquiries-made-in-second-and-minute-yesterday-last-week-last-month/234405/2 "2020-05-27T00:19:21Z")

</div>

Hi @edwardj3!

Would make it easier to help if you can share some more about your data.

From what you've said, does a [max aggregation](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-max-aggregation.html) do what you're looking for?

---

<div class="post-metadata">

**Author:** ![edwardj3](https://avatars.discourse-cdn.com/v4/letter/e/d2c977/32.png) [@edwardj3](https://discuss.elastic.co/u/edwardj3)\
**Post date:** [May 27, 2020, 7:11am UTC](https://discuss.elastic.co/t/max-enquiries-made-in-second-and-minute-yesterday-last-week-last-month/234405/3 "2020-05-27T07:11:23Z")

</div>

Hi @myasonik  
Thanks for your suggestion and apologies for the lack of detail. The logs are for an enquiry service with 8-10m enquiries a month.

Within message, we are currently filtering for message: "action=save....." and a timestamp is also captured as "2020-05-27T06:38:39Z"

Hope this helps but get back in touch if you need more detail.

---

<div class="post-metadata">

**Author:** ![myasonik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/myasonik/32/62369_2.png) [@myasonik](https://discuss.elastic.co/u/myasonik)\
**Post date:** [May 27, 2020, 4:56pm UTC](https://discuss.elastic.co/t/max-enquiries-made-in-second-and-minute-yesterday-last-week-last-month/234405/4 "2020-05-27T16:56:05Z")

</div>

Sounds like a [max aggregation](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-max-aggregation.html) might work for you

---

<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:** [June 24, 2020, 4:56pm UTC](https://discuss.elastic.co/t/max-enquiries-made-in-second-and-minute-yesterday-last-week-last-month/234405/5 "2020-06-24T16:56:13Z")

</div>

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