# Error WATCHER smtp.host

**URL:** <https://discuss.elastic.co/t/error-watcher-smtp-host/273516>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [May 20, 2021, 11:14am UTC](https://discuss.elastic.co/t/error-watcher-smtp-host/273516 "2021-05-20T11:14:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![milasi99](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/milasi99/32/89015_2.png) [@milasi99](https://discuss.elastic.co/u/milasi99)\
**Post date:** [May 20, 2021, 11:14am UTC](https://discuss.elastic.co/t/error-watcher-smtp-host/273516/1 "2021-05-20T11:14:53Z")

</div>

Hi, i have the elasticsearch version 7.12, and im trying do a Watcher.

I have that error:

> **Summary**
>
> ```
> {
> "watch_id": "prueba",
> "node": "RWT064xBSfu5wmGh9bksrA",
> "state": "executed",
> "status": {
> "state": {
> "active": true,
> "timestamp": "2021-05-20T08:03:59.369Z"
> },
> "last_checked": "2021-05-20T10:54:13.269Z",
> "last_met_condition": "2021-05-20T10:54:13.269Z",
> "actions": {
> "email_administrator": {
> "ack": {
> "timestamp": "2021-05-20T08:03:59.369Z",
> "state": "awaits_successful_execution"
> },
> "last_execution": {
> "timestamp": "2021-05-20T10:54:13.269Z",
> "successful": false,
> "reason": ""
> }
> }
> },
> "execution_state": "executed",
> "version": -1
> },
> "trigger_event": {
> "type": "schedule",
> "triggered_time": "2021-05-20T10:54:13.269Z",
> "schedule": {
> "scheduled_time": "2021-05-20T10:54:12.876Z"
> }
> },
> "input": {
> "search": {
> "request": {
> "search_type": "query_then_fetch",
> "indices": [
> "cajamar-*"
> ],
> "rest_total_hits_as_int": true,
> "body": {
> "size": 0,
> "query": {
> "match": {
> "result": "error"
> }
> }
> }
> }
> }
> },
> "condition": {
> "compare": {
> "ctx.payload.hits.total": {
> "gt": 1
> }
> }
> },
> "metadata": {
> "color": "red"
> },
> "result": {
> "execution_time": "2021-05-20T10:54:13.269Z",
> "execution_duration": 34,
> "input": {
> "type": "search",
> "status": "success",
> "payload": {
> "_shards": {
> "total": 2,
> "failed": 0,
> "successful": 2,
> "skipped": 0
> },
> "hits": {
> "hits": [x],
> "total": 18,
> "max_score": null
> },
> "took": 12,
> "timed_out": false
> },
> "search": {
> "request": {
> "search_type": "query_then_fetch",
> "indices": [
> "cajamar-*"
> ],
> "rest_total_hits_as_int": true,
> "body": {
> "size": 0,
> "query": {
> "match": {
> "result": "error"
> }
> }
> }
> }
> }
> },
> "condition": {
> "type": "compare",
> "status": "success",
> "met": true,
> "compare": {
> "resolved_values": {
> "ctx.payload.hits.total": 18
> }
> }
> },
> "actions": [
> {
> "id": "email_administrator",
> "type": "email",
> "status": "failure",
> "error": {
> "root_cause": [
> {
> "type": "settings_exception",
> "reason": "missing required email account setting for account [outlook_account]. 'smtp.host' must be configured"
> }
> ],
> "type": "settings_exception",
> "reason": "missing required email account setting for account [outlook_account]. 'smtp.host' must be configured"
> }
> }
> ]
> },
> 
> ```

"messages":   
}

Console:  
`"stacktrace": ["org.elasticsearch.common.settings.SettingsException: missing required email account setting for account [outlook_account]. '` `smtp` `.host' must be configured",`

My Elasticsearch.yml:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/8/28ab3a3f345a6d19ed72aa61d16090a75e4c897a.png)

---

<div class="post-metadata">

**Author:** ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)\
**Post date:** [May 20, 2021, 11:24am UTC](https://discuss.elastic.co/t/error-watcher-smtp-host/273516/2 "2021-05-20T11:24:45Z")

</div>

Check it here, you may need `email_defaults.from` to be same as `smtp.user`

> **[Watcher email action | Elasticsearch Guide \[7.12\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/actions-email.html#exchange)**

---

<div class="post-metadata">

**Author:** ![milasi99](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/milasi99/32/89015_2.png) [@milasi99](https://discuss.elastic.co/u/milasi99)\
**Post date:** [May 20, 2021, 12:31pm UTC](https://discuss.elastic.co/t/error-watcher-smtp-host/273516/3 "2021-05-20T12:31:43Z")

</div>

Where should i put it? Into outlook\_account?

---

<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:** [June 17, 2021, 12:32pm UTC](https://discuss.elastic.co/t/error-watcher-smtp-host/273516/4 "2021-06-17T12:32:01Z")

</div>

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