Gmail watcher , exception during elastic search

Hi,

I am trying to setup watcher on index and send notification on my gmail account.

Done below settings in elasticsearch.yml , indentation is correct.

xpack.notification.email.account:
gmail_account:
profile: gmail
smtp:
auth: true
starttls.enable: true
host: smtp.gmail.com
port: 587
user: xxx@gmail.com
password: xxx

I m getting below exception about the password,.

[2019-05-06T13:43:31,535][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [ajayk-hz55yn2] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: unknown setting [xpack.notification.email.account.gmail_account.smtp.password] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-7.0.0.jar:7.0.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.0.0.jar:7.0.0]

I dont have the 2-step authentication enabled so do i need to give access to ES on my gmail account?

Please suggest.

Regards
Ajay

See password needs to be a secure setting in Elasticsearch 7.0, see https://www.elastic.co/guide/en/elastic-stack-overview/7.0/actions-email.html#configuring-email

Hi,
i have generated password for app(elastic) and trying to use the same which i got but still same error.

What do you mean by " password needs to be a secure setting"? what exactly i have to do for this , please elaborate.
Regards
Ajay

please take your time to read the link I mentioned in my last post as it contains detailed instructions how to store such an email account password, including the required command.

Great , i got the notification.

thanks for your support.

1 Like

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