# Compare count hits of current time vs last 5min

**URL:** <https://discuss.elastic.co/t/compare-count-hits-of-current-time-vs-last-5min/108309>\
**Category:** Elasticsearch\
**Created:** [November 20, 2017, 4:03am UTC](https://discuss.elastic.co/t/compare-count-hits-of-current-time-vs-last-5min/108309 "2017-11-20T04:03:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrlnstpn](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@mrlnstpn](https://discuss.elastic.co/u/mrlnstpn)\
**Post date:** [November 20, 2017, 4:03am UTC](https://discuss.elastic.co/t/compare-count-hits-of-current-time-vs-last-5min/108309/1 "2017-11-20T04:03:20Z")

</div>

I want to create an alert that would compare count hits of the current time vs the last 5min. then if lower than 70%-80% if will trigger an alert via email, etc. Does anybody here done the same? Thanks!

---

<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:** [December 18, 2017, 4:03am UTC](https://discuss.elastic.co/t/compare-count-hits-of-current-time-vs-last-5min/108309/2 "2017-12-18T04:03:24Z")

</div>

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