Failed to configure email alerts with gmail

Error I get:

[2019-05-09T08:45:12,470][INFO ][o.e.p.PluginsService     ] [app] loaded module [aggs-matrix-stats]
[2019-05-09T08:45:12,470][INFO ][o.e.p.PluginsService     ] [app] loaded module [analysis-common]
[2019-05-09T08:45:12,470][INFO ][o.e.p.PluginsService     ] [app] loaded module [ingest-common]
[2019-05-09T08:45:12,482][INFO ][o.e.p.PluginsService     ] [app] loaded module [ingest-geoip]
[2019-05-09T08:45:12,482][INFO ][o.e.p.PluginsService     ] [app] loaded module [ingest-user-agent]
[2019-05-09T08:45:12,482][INFO ][o.e.p.PluginsService     ] [app] loaded module [lang-expression]
[2019-05-09T08:45:12,483][INFO ][o.e.p.PluginsService     ] [app] loaded module [lang-mustache]
[2019-05-09T08:45:12,483][INFO ][o.e.p.PluginsService     ] [app] loaded module [lang-painless]
[2019-05-09T08:45:12,483][INFO ][o.e.p.PluginsService     ] [app] loaded module [mapper-extras]
[2019-05-09T08:45:12,483][INFO ][o.e.p.PluginsService     ] [app] loaded module [parent-join]
[2019-05-09T08:45:12,484][INFO ][o.e.p.PluginsService     ] [app] loaded module [percolator]
[2019-05-09T08:45:12,486][INFO ][o.e.p.PluginsService     ] [app] loaded module [rank-eval]
[2019-05-09T08:45:12,486][INFO ][o.e.p.PluginsService     ] [app] loaded module [reindex]
[2019-05-09T08:45:12,486][INFO ][o.e.p.PluginsService     ] [app] loaded module [repository-url]
[2019-05-09T08:45:12,546][INFO ][o.e.p.PluginsService     ] [app] loaded module [transport-netty4]
[2019-05-09T08:45:12,550][INFO ][o.e.p.PluginsService     ] [app] loaded module [x-pack-ccr]
[2019-05-09T08:45:12,550][INFO ][o.e.p.PluginsService     ] [app] loaded module [x-pack-core]
[2019-05-09T08:45:12,551][INFO ][o.e.p.PluginsService     ] [app] loaded module [x-pack-deprecation]
[2019-05-09T08:45:12,551][INFO ][o.e.p.PluginsService     ] [app] loaded module [x-pack-graph]
[2019-05-09T08:45:12,551][INFO ][o.e.p.PluginsService     ] [app] loaded module [x-pack-ilm]
[2019-05-09T08:45:12,552][INFO ][o.e.p.PluginsService     ] [app] loaded module [x-pack-logstash]
[2019-05-09T08:45:12,554][INFO ][o.e.p.PluginsService     ] [app] loaded module [x-pack-ml]
[2019-05-09T08:45:12,554][INFO ][o.e.p.PluginsService     ] [app] loaded module [x-pack-monitoring]
[2019-05-09T08:45:12,554][INFO ][o.e.p.PluginsService     ] [app] loaded module [x-pack-rollup]
[2019-05-09T08:45:12,555][INFO ][o.e.p.PluginsService     ] [app] loaded module [x-pack-security]
[2019-05-09T08:45:12,555][INFO ][o.e.p.PluginsService     ] [app] loaded module [x-pack-sql]
[2019-05-09T08:45:12,558][INFO ][o.e.p.PluginsService     ] [app] loaded module [x-pack-watcher]
[2019-05-09T08:45:12,566][INFO ][o.e.p.PluginsService     ] [app] no plugins loaded
[2019-05-09T08:45:18,859][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [app] 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

elasticsearch.yml:
xpack.notification.email.account:
gmail_account:
profile: gmail
email_defaults:
from: 'alerts mail@gmail.com'
smtp:
auth: true
starttls.enable: true
host: smtp.gmail.com
port: 587
user: mail
password: pwd

Am i Missing something? Somehow it just won't load the plugin and/or setting.

Hey,

which version are running under? If this is 7.0, then use the keystore to configure the password

bin/elasticsearch-keystore add xpack.notification.email.account.gmail_account.smtp.secure_password

See https://www.elastic.co/guide/en/elastic-stack-overview/7.0/actions-email.html#gmail

1 Like

Worked. Thanks bud. You're a life saver.

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