# Log Alerts - Latest Events

**URL:** <https://discuss.elastic.co/t/log-alerts-latest-events/369173>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [October 21, 2024, 5:50pm UTC](https://discuss.elastic.co/t/log-alerts-latest-events/369173 "2024-10-21T17:50:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [October 21, 2024, 5:50pm UTC](https://discuss.elastic.co/t/log-alerts-latest-events/369173/1 "2024-10-21T17:50:15Z")

</div>

How can I create a alert that checks for the last events?

For example I might collect 36 documents of the same event but the timestamp is different. I don't really care about the all the events because it might create spam. Like 36 alerts is not as useful, but 1 alert with the latest event is . OR is there a way to create aggregations in log threshold alerts?
