X-Pack Alerting

In a multi node elastic cluster which node (master, hot and warm data nodes, client nodes) the following mail configuration needs to be entered for X-Pack alerting.

xpack.notification.email.account:
work:
profile: gmail
email_defaults:
from:
smtp:
auth: true
starttls.enable: true
host: smtp.gmail.com
port: 587
user:
password:

Hi @mruthyu,

what is your question regarding the mentioned alerting configuration?

Whether the above mentioned email account configuration needs to be entered (elasticsearch.yml) on all nodes or only in the master nodes is fine where the watcher runs.

For the sake of consistency you should put it on all nodes. You have to put it on all nodes that can potentially become master node. Also, from 6.0 onwards the location where watches will be executed will change, so that it makes sense to put this config everywhere just to be future proof.

If you dont want to store this in configuration files, you can also use the cluster update settings API to store the configuration settings. No need for a restart.

1 Like

Great. Thank you. Where the persistent type of cluster updates are stored? Whether it will survive the node restart.
Also when is the tentative date of BELK 6.0 release.

AFAIK the settings become part of the cluster state.

Felix is right. The persistent updates are written to disk together with the cluster state. This is also the reason why those updates survive full cluster restarts, where as the transient updates do not.

There are no concrete release dates for the Elastic Stack 6.0. Even though we are nearing GA, it will take a few more months until the GA version will be out (and one or more release candidates in between). Nothing more concrete though.

Thank you.

Let me know if the following is fine for persistent settings.

PUT /_cluster/settings
{
"persistent" : {
"xpack.notification.email.account.standard_account.profile" : "standard",
"xpack.notification.email.account.standard_account.email_defaults.from" : "XXXXX@EMAIL.COM",
"xpack.notification.email.account.standard_account.smtp.auth" : "false",
"xpack.notification.email.account.standard_account.smtp.starttls.enable" : "false",
"xpack.notification.email.account.standard_account.smtp.host" : "10.11.1.16",
"xpack.notification.email.account.standard_account.smtp.port" : "50"
}

}

you should see a logging line starting like this in your master node

[2017-09-08T11:08:48,979][INFO ][o.e.c.s.ClusterSettings  ] [YtxeOyz] updating [xpack.notification.email.]

you can just check if GET /_cluster/settings for your settings.

--Alex

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