# Watcher - Not created return error

**URL:** https://discuss.elastic.co/t/watcher-not-created-return-error/195763
**Category:** Elasticsearch
**Tags:** elastic-stack-alerting
**Created:** [August 19, 2019, 3:18pm UTC](https://discuss.elastic.co/t/watcher-not-created-return-error/195763 "2019-08-19T15:18:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Felipe\_Cabral\_Jeroni](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felipe_cabral_jeroni/32/51755_2.png) [@Felipe\_Cabral\_Jeroni](https://discuss.elastic.co/u/Felipe_Cabral_Jeroni)
#### Post date: [August 19, 2019, 3:18pm UTC](https://discuss.elastic.co/t/watcher-not-created-return-error/195763/1 "2019-08-19T15:18:13Z")

</div>

Hi guys,

I've configured the elasticsearch.yml and the PUT message in order to test if I can receive some emails but I'm not receiving it and I'm getting the follow message when posting the put:

```
{
"_id": "log_error_watch",
"_version": 74,
"_seq_no": 243,
"_primary_term": 11,
"created": false
}

```

My message is the following:

```
{
"trigger": {
"schedule": {
  "interval": "20h"
 }
},
"actions": {
"send_email": {
  "email": {
    "to": "email@xxxxx.xxx",
    "subject": "Testing Email Delivery Alerting",
    "body": "Body content goes here"
     }
    }
  }
}

```

the elasticsearch.yml:

```
xpack.security.enabled: false

xpack.notification.email.account:
  standard_account:
     profile: standard
     smtp:
         auth: false
         starttls.enable: false
         host: smtp-xxxx.xxxx
         port: 25

```

Am I doing something wrong?

---

<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: [August 19, 2019, 3:50pm UTC](https://discuss.elastic.co/t/watcher-not-created-return-error/195763/2 "2019-08-19T15:50:33Z")

</div>

can you paste the output of the [Execute Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/watcher-api-execute-watch.html) here or in a gist in order to be able to debug things better?

---

<div class="post-metadata">

### Author: ![Felipe\_Cabral\_Jeroni](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felipe_cabral_jeroni/32/51755_2.png) [@Felipe\_Cabral\_Jeroni](https://discuss.elastic.co/u/Felipe_Cabral_Jeroni)
#### Post date: [August 20, 2019, 7:25am UTC](https://discuss.elastic.co/t/watcher-not-created-return-error/195763/3 "2019-08-20T07:25:51Z")

</div>

Hi @spinscale,

I could be able to make it work. The problem was that the indew was already been created and I didn't see it, so after dropt and recreate it I was able to see it's working.

---

<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: [September 17, 2019, 7:25am UTC](https://discuss.elastic.co/t/watcher-not-created-return-error/195763/4 "2019-09-17T07:25:52Z")

</div>

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