For mail configuration i have added the following piece of code in elasticsearch.yml
at the end of the file:
> xpack.watcher.enabled: true
xpack.notification.email.account: gmail_account: profile: gmail smtp: auth: true starttls.enable: true host: smtp.gmail.com port: 587 user: "kiranmadh" password: "************"
I have modified the following code in management -> watcher ->
"email_administrator": {
"email": {
"profile": "standard",
"attachments": {
"attached_data": {
"data": {
"format": "json"
}
}
},
"priority": "high",
"to": [
"kiran.kumar.illa@accenture.com"
],
"subject": "Encountered {{ctx.payload.hits.total}} errors",
"body": {
"text": "Too many error in the system, see attached data"
}
}
Logstash is also in running state...
I have restarted the ES but i have encountered with the following error and not able to receive any mail:
2017-06-16T19:30:39,932][ERROR][o.e.x.w.a.e.ExecutableEmailAction] [2HZAhP9] failed to execute action [jira/email_administrator]
javax.mail.MessagingException: failed to send email with subject [Encountered 38 errors] via account [gmail_account]
at org.elasticsearch.xpack.notification.email.EmailService.send(EmailService.java:66) ~[x-pack-5.4.0.jar:5.4.0]
at org.elasticsearch.xpack.notification.email.EmailService.send(EmailService.java:58) ~[x-pack-5.4.0.jar:5.4.0]
at org.elasticsearch.xpack.watcher.actions.email.ExecutableEmailAction.execute(ExecutableEmailAction.java:86) ~[x-pack-5.4.0.jar:5.4.0]
at org.elasticsearch.xpack.watcher.actions.ActionWrapper.execute(ActionWrapper.java:160) [x-pack-5.4.0.jar:5.4.0]
Please find the attached screen shot for reference.
Could you please help me on resolving this issue..
Thanks in advance