# Watch for no metricbeats data on client

**URL:** <https://discuss.elastic.co/t/watch-for-no-metricbeats-data-on-client/171789>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring, elastic-stack-alerting\
**Created:** [March 11, 2019, 2:42pm UTC](https://discuss.elastic.co/t/watch-for-no-metricbeats-data-on-client/171789 "2019-03-11T14:42:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ant/32/33267_2.png) [@Ant](https://discuss.elastic.co/u/Ant)\
**Post date:** [March 11, 2019, 2:42pm UTC](https://discuss.elastic.co/t/watch-for-no-metricbeats-data-on-client/171789/1 "2019-03-11T14:42:17Z")

</div>

I've set up metricbeats on some key infrastructure and logging it all in elastic where I'm running ML to look for anomalies. However if a box goes offline, where it sends no data I don't beleive the watch will trigger anything but the box being dead is one of the more serious alerts I want to get. Has anyone got any ideas on now I can monitor for this?

---

<div class="post-metadata">

**Author:** ![andres-perez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andres-perez/32/136461_2.png) [@andres-perez](https://discuss.elastic.co/u/andres-perez)\
**Post date:** [March 12, 2019, 8:59am UTC](https://discuss.elastic.co/t/watch-for-no-metricbeats-data-on-client/171789/2 "2019-03-12T08:59:41Z")

</div>

A simple and straightforward approach: set up a watch for each monitorized machine, look for the messages in the last n minutes and evaluate if the total is zero.

For a more complicated and escalable solution, check the watcher examples from the official repository:

> **[elastic/examples](https://github.com/elastic/examples/tree/master/Alerting/Sample%20Watches/system_fails_to_provide_data)**
>
> Home for Elasticsearch examples available to everyone. It's a great way to get started. - elastic/examples

---

<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:** [April 9, 2019, 8:59am UTC](https://discuss.elastic.co/t/watch-for-no-metricbeats-data-on-client/171789/3 "2019-04-09T08:59:51Z")

</div>

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