# Watcher configuration error

**URL:** <https://discuss.elastic.co/t/watcher-configuration-error/253292>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [October 26, 2020, 10:53am UTC](https://discuss.elastic.co/t/watcher-configuration-error/253292 "2020-10-26T10:53:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Syed.Ubaid](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Syed.Ubaid](https://discuss.elastic.co/u/Syed.Ubaid)\
**Post date:** [October 26, 2020, 10:53am UTC](https://discuss.elastic.co/t/watcher-configuration-error/253292/1 "2020-10-26T10:53:53Z")

</div>

I am configuring watcher email in elasticsearch yml using this configuration xpack.notification.email.account:  
gmail\_account:  
profile: gmail  
smtp:  
auth: true  
starttls.enable: true  
host: [smtp.gmail.com](http://smtp.gmail.com)  
port: 587  
user: \*\*\*\*@gmail.com  
password: \*\*\*\*\*

i got this error after running on elasticsearch

unknown secure setting [xpack.notification.email.account.gmail\_account.**] please check that any required plugins are installed, or check the breaking changes documentation for removed settings  
i have tried to add password by using this link  
bin/elasticsearch-keystore add xpack.notification.email.account.gmail\_account.smtp.secure\_password  
he ask password i entered the password and run elasticsearch i got the above error which is  
unknown secure setting [xpack.notification.email.account.gmail\_account.**] please check that any required plugins are installed, or check the breaking changes documentation for removed settings

---

<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:** [October 26, 2020, 12:25pm UTC](https://discuss.elastic.co/t/watcher-configuration-error/253292/2 "2020-10-26T12:25:57Z")

</div>

The setting must include the `password` name as well. Please share the **exact** line you tried to save the secure setting, instead of just showing the error message.

---

<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:** [November 23, 2020, 12:26pm UTC](https://discuss.elastic.co/t/watcher-configuration-error/253292/3 "2020-11-23T12:26:01Z")

</div>

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