Gmail watcher , exception during elastic search


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

Done below settings in elasticsearch.yml , indentation is correct.
profile: gmail
auth: true
starttls.enable: true
port: 587
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 [] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
at org.elasticsearch.bootstrap.Elasticsearch.init( ~[elasticsearch-7.0.0.jar:7.0.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute( ~[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.


See password needs to be a secure setting in Elasticsearch 7.0, see

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.

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.