# Max count of a index in a day

**URL:** <https://discuss.elastic.co/t/max-count-of-a-index-in-a-day/313133>\
**Category:** Elasticsearch\
**Created:** [August 29, 2022, 8:30am UTC](https://discuss.elastic.co/t/max-count-of-a-index-in-a-day/313133 "2022-08-29T08:30:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maruf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maruf/32/110187_2.png) [@maruf](https://discuss.elastic.co/u/maruf)\
**Post date:** [August 29, 2022, 8:30am UTC](https://discuss.elastic.co/t/max-count-of-a-index-in-a-day/313133/1 "2022-08-29T08:30:59Z")

</div>

Hi,  
I am new to elasticsearch. We are using ELK stack for logging nginx and various logs.  
Is there a way to aggregate today's max for an index pattern?  
Example:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/2/526b08338e6fbb82e21f4587ea7488031e1617ed.png)

In Kibana I can see the spike, I want to get that timestamp and count in Elasticsearch client.

---

<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 26, 2022, 8:31am UTC](https://discuss.elastic.co/t/max-count-of-a-index-in-a-day/313133/2 "2022-09-26T08:31:07Z")

</div>

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