this config on elasticsearch.yml
================================================================
bootstrap.memory_lock: false
cluster.name: elasticsearch
http.port: 9200
network.host: 0.0.0.0
node.data: true
node.ingest: true
node.master: true
node.max_local_storage_nodes: 1
node.name: ELKWIN7
path.data: C:\ProgramData\Elastic\Elasticsearch\data
path.logs: C:\ProgramData\Elastic\Elasticsearch\logs
transport.tcp.port: 9300
xpack.license.self_generated.type: trial
xpack.notification.email.account:
** gmail_account:**
** profile: gmail**
** smtp:**
** auth: true**
** starttls.enable: true**
** host: smtp.gmail.com**
** port: 587**
** user: myuser@gmail.com**
** password: xxxx**
=================================================================
this error log on elasticsearch
===========================================================================
[2018-04-04T10:50:52,847][ERROR][o.e.x.w.a.e.ExecutableEmailAction] [ELKWIN7] failed to execute action [inlined/email_1]
javax.mail.MessagingException: failed to send email with subject [Watch [peak] has exceeded the threshold] via account [gmail_account]
** at org.elasticsearch.xpack.watcher.notification.email.EmailService.send(EmailService.java:112) ~[?:?]**
** at org.elasticsearch.xpack.watcher.notification.email.EmailService.send(EmailService.java:104) ~[?:?]**
** at org.elasticsearch.xpack.watcher.actions.email.ExecutableEmailAction.execute(ExecutableEmailAction.java:84) ~[?:?]**
** at org.elasticsearch.xpack.core.watcher.actions.ActionWrapper.execute(ActionWrapper.java:156) [x-pack-core-6.2.3.jar:6.2.3]**
** at org.elasticsearch.xpack.watcher.execution.ExecutionService.executeInner(ExecutionService.java:492) [x-pack-watcher-6.2.3.jar:6.2.3]**
** at org.elasticsearch.xpack.watcher.execution.ExecutionService.execute(ExecutionService.java:322) [x-pack-watcher-6.2.3.jar:6.2.3]**
** at org.elasticsearch.xpack.watcher.transport.actions.execute.TransportExecuteWatchAction$1.doRun(TransportExecuteWatchAction.java:165) [x-pack-watcher-6.2.3.jar:6.2.3]**
** at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.2.3.jar:6.2.3]**
** at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) [?:?]**
** at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]**
** at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:573) [elasticsearch-6.2.3.jar:6.2.3]**
** at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) [?:?]**
** at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) [?:?]**
** at java.lang.Thread.run(Thread.java:844) [?:?]**
Caused by: javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvo
534-5.7.14 90Kh2d6KCME5Z0RHy1IhzDhkQjoSIbXlFk4T2Gh6STWbvR8N3lj_I0yTft8_E8SwNSjcAi
534-5.7.14 F6QxjkJ3UhGBKEXK7hhsOuoVlm9m9XycHoMYwx6oaawo0t0oxh-4nliUh5vEKZ2nmnw1PI
534-5.7.14 RAH5eRZe6-DYChdTNsOTraXlQ0jx8M7CZnUt1I8yKVnd40Cnunr2US-x0prWyvRoKbr7s3
534-5.7.14 6G1Gt20BM_Wart7UDIEnk7rXn148A> Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 m1sm8477372pfi.80 - gsmtp
==========================================================================
this i click Test fire an e-mail on this picture
I proof my email password by login successfully at gmail, it done.
please help me, thanks