# Elasticsearch config watcher problem

**URL:** <https://discuss.elastic.co/t/elasticsearch-config-watcher-problem/159124>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [December 3, 2018, 9:06am UTC](https://discuss.elastic.co/t/elasticsearch-config-watcher-problem/159124 "2018-12-03T09:06:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoux](https://avatars.discourse-cdn.com/v4/letter/z/e495f1/32.png) [@zoux](https://discuss.elastic.co/u/zoux)\
**Post date:** [December 3, 2018, 9:06am UTC](https://discuss.elastic.co/t/elasticsearch-config-watcher-problem/159124/1 "2018-12-03T09:06:29Z")

</div>

I add watcher to elasticsearch ,bui doesnt work

here is the error log:  
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: unknown setting [watcher.actions.email.service.account.work.smtp.password] please check that any required plugins are installed, or check the breaking changes documentation for removed settings  
.....  
Suppressed: java.lang.IllegalArgumentException: unknown setting [watcher.actions.email.service.account.work.smtp.starttls.enable] please check that any required plugins are installed, or check the breaking changes documentation for removed settings  
......  
Suppressed: java.lang.IllegalArgumentException: unknown setting [watcher.actions.email.service.account.work.email\_defaults.from] please check that any required plugins are installed, or check the breaking changes documentation for removed settings

and config file  
[zoux@zouxcentos7 elasticsearch]$ grep -v "#" config/elasticsearch.yml  
network.host: 0.0.0.0  
http.port: 9200  
http.cors.enabled: true  
http.cors.allow-origin: "\*"  
watcher.actions.email.service.account:  
work:  
profile: standard  
email\_defaults:  
from: '1264503504@qq.com'  
smtp:  
auth: true  
starttls.enable: true  
host: [smtp.qq.com](http://smtp.qq.com)  
port: 465  
user: [1264503504@qq.com](mailto:1264503504@qq.com)  
password: verysimple3

---

<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:** [December 3, 2018, 9:45am UTC](https://discuss.elastic.co/t/elasticsearch-config-watcher-problem/159124/2 "2018-12-03T09:45:00Z")

</div>

Which Elasticsearch version you are using? The `watcher` prefix for setting has been abandoned from 5.0 onwards.

See [https://www.elastic.co/guide/en/elastic-stack-overview/6.5/actions-email.html#configuring-email](https://www.elastic.co/guide/en/elastic-stack-overview/6.5/actions-email.html#configuring-email)

---

<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:** [December 31, 2018, 9:52am UTC](https://discuss.elastic.co/t/elasticsearch-config-watcher-problem/159124/3 "2018-12-31T09:52:56Z")

</div>

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