# Alert when watcher is in error state - .watcher\_history

**URL:** <https://discuss.elastic.co/t/alert-when-watcher-is-in-error-state-watcher-history/136348>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [June 18, 2018, 4:59pm UTC](https://discuss.elastic.co/t/alert-when-watcher-is-in-error-state-watcher-history/136348 "2018-06-18T16:59:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Piotr\_Pawlak](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@Piotr\_Pawlak](https://discuss.elastic.co/u/Piotr_Pawlak)\
**Post date:** [June 22, 2018, 3:25pm UTC](https://discuss.elastic.co/t/alert-when-watcher-is-in-error-state-watcher-history/136348/4 "2018-06-22T15:25:52Z")

</div>

I am including kinda related topic I raised [I cannot index "status.actions.my\_webhook.last\_execution.successful" in .watcher-history-\*](https://discuss.elastic.co/t/i-cannot-index-status-actions-my-webhook-last-execution-successful-in-watcher-history/137038/2?u=piotr_pawlak) about unable to index a field.

To be honest all I want is programmatic method to alert if a watcher fails.

---

_[View the full topic](https://discuss.elastic.co/t/alert-when-watcher-is-in-error-state-watcher-history/136348)._
