# Alert Notification just once

**URL:** <https://discuss.elastic.co/t/alert-notification-just-once/256030>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [November 19, 2020, 7:27pm UTC](https://discuss.elastic.co/t/alert-notification-just-once/256030 "2020-11-19T19:27:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![user007](https://avatars.discourse-cdn.com/v4/letter/u/65b543/32.png) [@user007](https://discuss.elastic.co/u/user007)\
**Post date:** [December 10, 2020, 6:11pm UTC](https://discuss.elastic.co/t/alert-notification-just-once/256030/2 "2020-12-10T18:11:14Z")

</div>

As it seems that there is no feature which allows that, i used a workaround with painless scripts.

My goal was to send a notification when a value in the logs is over a specific threshold. But then i got notifications as long as these value was over the threshold. But i just wanted a notification when it's over and then again when it's under the threshold.

With two painless scripts and different time ranges this problem can be solved easily.

---

_[View the full topic](https://discuss.elastic.co/t/alert-notification-just-once/256030)._
