# Need Help to write a watcher for alerting some beat.hostname missing on the last 1h or every day

**URL:** <https://discuss.elastic.co/t/need-help-to-write-a-watcher-for-alerting-some-beat-hostname-missing-on-the-last-1h-or-every-day/164918>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [January 20, 2019, 2:12am UTC](https://discuss.elastic.co/t/need-help-to-write-a-watcher-for-alerting-some-beat-hostname-missing-on-the-last-1h-or-every-day/164918 "2019-01-20T02:12:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bayoumben](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bayoumben/32/38629_2.png) [@bayoumben](https://discuss.elastic.co/u/bayoumben)\
**Post date:** [January 20, 2019, 2:12am UTC](https://discuss.elastic.co/t/need-help-to-write-a-watcher-for-alerting-some-beat-hostname-missing-on-the-last-1h-or-every-day/164918/1 "2019-01-20T02:12:09Z")

</div>

Hi all,  
I really need your help to write a watcher for alerting some beat.hostname missing on the last 1h or every day.  
Thanks

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 20, 2019, 8:10am UTC](https://discuss.elastic.co/t/need-help-to-write-a-watcher-for-alerting-some-beat-hostname-missing-on-the-last-1h-or-every-day/164918/2 "2019-01-20T08:10:57Z")

</div>

I would recommend having a look at [this example](https://github.com/elastic/examples/tree/master/Alerting/Sample%20Watches/system_fails_to_provide_data) from our examples repository and adjust it to fit your needs.

---

<div class="post-metadata">

**Author:** ![bayoumben](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bayoumben/32/38629_2.png) [@bayoumben](https://discuss.elastic.co/u/bayoumben)\
**Post date:** [January 20, 2019, 9:35am UTC](https://discuss.elastic.co/t/need-help-to-write-a-watcher-for-alerting-some-beat-hostname-missing-on-the-last-1h-or-every-day/164918/3 "2019-01-20T09:35:32Z")

</div>

Thanks @Christian_Dahlqvist for your reply, i try to adjust [this example](https://github.com/elastic/examples/) but it is not clear for me...  
Can you tell me what i change plz?

---

<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:** [February 17, 2019, 9:35am UTC](https://discuss.elastic.co/t/need-help-to-write-a-watcher-for-alerting-some-beat-hostname-missing-on-the-last-1h-or-every-day/164918/4 "2019-02-17T09:35:43Z")

</div>

Closed on February 17, 2019, 9:35am UTC

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