# Error when try to configure password with keystore using elasticsearch 7

**URL:** <https://discuss.elastic.co/t/error-when-try-to-configure-password-with-keystore-using-elasticsearch-7/197597>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [August 31, 2019, 4:57pm UTC](https://discuss.elastic.co/t/error-when-try-to-configure-password-with-keystore-using-elasticsearch-7/197597 "2019-08-31T16:57:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maria1](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@maria1](https://discuss.elastic.co/u/maria1)\
**Post date:** [August 31, 2019, 4:57pm UTC](https://discuss.elastic.co/t/error-when-try-to-configure-password-with-keystore-using-elasticsearch-7/197597/1 "2019-08-31T16:57:37Z")

</div>

Hello,  
I'm trying to configure email action in my watcher, and when I try to configure the password using this command  
bin/elasticsearch-keystore add xpack.notification.email.account.gmail\_account.smtp.secure\_password

I get next error:  
Exception in thread "main" ElasticsearchParseException[null-valued setting found for key [xpack.notification.email.account]found at line......]

my configuration in elasticsearch.yml is:  
xpack.notification.email.account:  
gmail\_account:  
profile:gmail  
email\_defaults:  
from:'myemail@gmail.com'  
smtp.host:smtp.gmail.com  
smtp.auth:true  
smtp.starttls.enable:true  
smtp.user:myemail  
smtp.port:587

thank you in advance for your help!!!!

regards

---

<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 2, 2019, 8:35am UTC](https://discuss.elastic.co/t/error-when-try-to-configure-password-with-keystore-using-elasticsearch-7/197597/2 "2019-09-02T08:35:41Z")

</div>

can you include a gist to your configuration (your full configuration please, also including indentation), and also include the full stack trace/error message including the correct line?

---

<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 30, 2019, 8:35am UTC](https://discuss.elastic.co/t/error-when-try-to-configure-password-with-keystore-using-elasticsearch-7/197597/3 "2019-09-30T08:35:42Z")

</div>

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