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