# Create recovery email notification

**URL:** https://discuss.elastic.co/t/create-recovery-email-notification/218505
**Category:** Elasticsearch
**Tags:** elastic-stack-alerting
**Created:** [February 10, 2020, 3:48am UTC](https://discuss.elastic.co/t/create-recovery-email-notification/218505 "2020-02-10T03:48:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jiashen\_Tian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jiashen_tian/32/45243_2.png) [@Jiashen\_Tian](https://discuss.elastic.co/u/Jiashen_Tian)
#### Post date: [February 10, 2020, 3:48am UTC](https://discuss.elastic.co/t/create-recovery-email-notification/218505/1 "2020-02-10T03:48:21Z")

</div>

Hi:

I'm using Kibana 7.5 and have a watcher for sending out email alert when there is error in my application.

In addition to that, I'd like to setup another watcher which will send email notification when the error is gone.

I have managed to create such watcher but don't know how to send the recovery email only once.

Just wondering if there is any way to store a variable value in the watcher execution so that it can be reused in the following execution?

Many thanks in advance.

Jason

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [February 12, 2020, 3:52pm UTC](https://discuss.elastic.co/t/create-recovery-email-notification/218505/2 "2020-02-12T15:52:10Z")

</div>

Hey,

unfortunately there is no way to carry over state from one watch execution to the next. You could implement this yourself, by querying the watch history using a chain input, and then check the condition of the previous execution.

Hope that gives you an idea.

--Alex

---

<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: [March 11, 2020, 3:52pm UTC](https://discuss.elastic.co/t/create-recovery-email-notification/218505/3 "2020-03-11T15:52:12Z")

</div>

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