# Watcher Enabling in ES configuration

**URL:** https://discuss.elastic.co/t/watcher-enabling-in-es-configuration/249672
**Category:** Elasticsearch
**Tags:** elastic-stack-alerting
**Created:** [September 23, 2020, 2:19pm UTC](https://discuss.elastic.co/t/watcher-enabling-in-es-configuration/249672 "2020-09-23T14:19:31Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)
#### Post date: [September 23, 2020, 2:19pm UTC](https://discuss.elastic.co/t/watcher-enabling-in-es-configuration/249672/1 "2020-09-23T14:19:32Z")

</div>

HI Team,  
I want to configure watcher in my ES 6.4 version.

Before that i have few question and i need answer for it and really appreciate if i can able to rectify my questions.  
1. I have 3 master and 3 data node,do i need to configure watcher in both the ES Config YAML file.  
2. I already below setup using Xpack security setting FYI,

> xpack.security.enabled: true  
> xpack.security.transport.ssl.enabled: true  
> xpack.security.transport.ssl.verification\_mode: full  
> xpack.security.transport.ssl.key: certs/hostname.net.key.pem  
> xpack.security.transport.ssl.certificate: certs/hostname.net.crt.pem  
> xpack.security.transport.ssl.certificate\_authorities: ["certs/trust\_chain.pem"]  
> xpack.security.http.ssl.enabled: true  
> xpack.security.http.ssl.key: certs/hostname.net.key.pem  
> xpack.security.http.ssl.certificate: certs/hostname.net.crt.pem  
> xpack.security.http.ssl.certificate\_authorities: ["certs/trust\_chain.pem"]  
> xpack.monitoring.exporters:  
> id1:  
> type: http  
> host: ["[https://hostname.net:9263](https://hostname.net:9263)"]  
> auth:  
> username: remote\_monitor  
> password: changeme  
> ssl:  
> certificate\_authorities: ["certs/trust\_chain.pem"]

1. If i'm adding Xpack watcher setting in my configuration and below setting is enough to trigger mail,

> xpack.notification.email.account:  
> exchange\_account:  
> profile: outlook  
> email\_defaults:  
> from: [elasticsearch@xxx.com](mailto:elasticsearch@xxx.com)  
> smtp:  
> auth: true  
> starttls.enable: true  
> host: [xxx.xxx.com](http://xxx.xxx.com)  
> port: 25  
> user: elastic  
> password: xxxxx

I need your opinion on my approach which im making correct or missing anything in config setting.

---

<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: [September 23, 2020, 2:33pm UTC](https://discuss.elastic.co/t/watcher-enabling-in-es-configuration/249672/2 "2020-09-23T14:33:19Z")

</div>

Hey,

I am not sure that I got from your post what the actual question is. Is it about the correctness of that configuration?

That is hard to tell, unless one sees the proper indentation (you can use markdown snippets here).

If it's something else, please do ask explicitely.

Thanks!

--Alex

---

<div class="post-metadata">

### Author: ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)
#### Post date: [September 23, 2020, 2:44pm UTC](https://discuss.elastic.co/t/watcher-enabling-in-es-configuration/249672/3 "2020-09-23T14:44:25Z")

</div>

HI @spinscale

Thanks for the reply,

1.Do i need to add the Xpack.notification.email.account in all the ES server or it enough to place it master node.  
2.second point is my current configuration setup in elasticsearch.yml.  
3.Third point configuration which i going to add for alert enable, is it correct or anything need to modify in it.

i want you to correct that configuration

---

<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: [September 24, 2020, 9:34am UTC](https://discuss.elastic.co/t/watcher-enabling-in-es-configuration/249672/4 "2020-09-24T09:34:38Z")

</div>

yes, that needs to be configured for all nodes, as watches are executed across the cluster

---

<div class="post-metadata">

### Author: ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)
#### Post date: [September 24, 2020, 10:12am UTC](https://discuss.elastic.co/t/watcher-enabling-in-es-configuration/249672/5 "2020-09-24T10:12:24Z")

</div>

All node mean both master and data node of es server.

---

<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: [September 24, 2020, 2:56pm UTC](https://discuss.elastic.co/t/watcher-enabling-in-es-configuration/249672/6 "2020-09-24T14:56:09Z")

</div>

yes, that's what I meant. When you test things with the [Execute Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/7.8/watcher-api-execute-watch.html) the watch will be executed on the node that receives the request.

---

<div class="post-metadata">

### Author: ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)
#### Post date: [September 24, 2020, 4:19pm UTC](https://discuss.elastic.co/t/watcher-enabling-in-es-configuration/249672/7 "2020-09-24T16:19:50Z")

</div>

@spinscale Thanks for the input.

will work around on it and reach you if required any further input on it.

---

<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: [October 22, 2020, 4:20pm UTC](https://discuss.elastic.co/t/watcher-enabling-in-es-configuration/249672/8 "2020-10-22T16:20:07Z")

</div>

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