# Send alert when transform has stopped

**URL:** <https://discuss.elastic.co/t/send-alert-when-transform-has-stopped/269790>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting, transforms\
**Created:** [April 10, 2021, 10:00pm UTC](https://discuss.elastic.co/t/send-alert-when-transform-has-stopped/269790 "2021-04-10T22:00:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NightSpark](https://avatars.discourse-cdn.com/v4/letter/n/ed8c4c/32.png) [@NightSpark](https://discuss.elastic.co/u/NightSpark)\
**Post date:** [April 10, 2021, 10:00pm UTC](https://discuss.elastic.co/t/send-alert-when-transform-has-stopped/269790/1 "2021-04-10T22:00:33Z")

</div>

Hi,

Is it possible to trigger an alert when a transform has stopped either by a user or from when it has failed?

One option would be to check if no new entries appear in the transform index however it is expected that there is extended periods in which this will naturally occur.

Thanks  
Can a watcher be used on

---

<div class="post-metadata">

**Author:** ![Hendrik\_Muhs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hendrik_muhs/32/25802_2.png) [@Hendrik\_Muhs](https://discuss.elastic.co/u/Hendrik_Muhs)\
**Post date:** [April 12, 2021, 6:59am UTC](https://discuss.elastic.co/t/send-alert-when-transform-has-stopped/269790/2 "2021-04-12T06:59:48Z")

</div>

It is currently not possible to trigger an alert on certain events.

What transform provides is a [stats API](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html), this will contain the state. If operating normally the state should be either `indexing` or `started`.

There are many more interesting fields in `_stats`, in `>7.12` we added a field called `last_search_time`, so you know if transform triggered correctly.

If you want to integrate this with watcher, you could use the [http input](https://www.elastic.co/guide/en/elasticsearch/reference/master/input-http.html).

Hope that helps, if you get it up and running, I think the community would appreciate if you post your watcher configuration.

---

<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:** [May 10, 2021, 7:00am UTC](https://discuss.elastic.co/t/send-alert-when-transform-has-stopped/269790/3 "2021-05-10T07:00:43Z")

</div>

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