# Threshold rule to alert when logs stop coming in from a log source

**URL:** <https://discuss.elastic.co/t/threshold-rule-to-alert-when-logs-stop-coming-in-from-a-log-source/246007>\
**Category:** Elastic Security\
**Tags:** elastic-stack-alerting\
**Created:** [August 23, 2020, 5:45am UTC](https://discuss.elastic.co/t/threshold-rule-to-alert-when-logs-stop-coming-in-from-a-log-source/246007 "2020-08-23T05:45:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ameer\_Mukadam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ameer_mukadam/32/47196_2.png) [@Ameer\_Mukadam](https://discuss.elastic.co/u/Ameer_Mukadam)\
**Post date:** [August 23, 2020, 5:45am UTC](https://discuss.elastic.co/t/threshold-rule-to-alert-when-logs-stop-coming-in-from-a-log-source/246007/1 "2020-08-23T05:45:04Z")

</div>

Hi, I read on the elastic blog that we can use threshold rules to detect if a log source has stopped sending in logs to es but I am still not sure how to create such a rule can anyone help me.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 23, 2020, 11:00pm UTC](https://discuss.elastic.co/t/threshold-rule-to-alert-when-logs-stop-coming-in-from-a-log-source/246007/2 "2020-08-23T23:00:09Z")

</div>

[https://github.com/elastic/examples/tree/master/Alerting/Sample%20Watches](https://github.com/elastic/examples/tree/master/Alerting/Sample%20Watches) has a bunch of examples that should help.

---

<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:** [November 4, 2022, 8:11am UTC](https://discuss.elastic.co/t/threshold-rule-to-alert-when-logs-stop-coming-in-from-a-log-source/246007/3 "2022-11-04T08:11:04Z")

</div>


