Hi Team,
I am facing same issue.
Please find below output for my system.
GET _cluster/settings?flat_settings&include_defaults
{
"persistent" : { },
"transient" : { },
"defaults" : {
"action.auto_create_index" : "true",
"action.destructive_requires_name" : "false",
"action.search.shard_count.limit" : "9223372036854775807",
"xpack.monitoring.collection.interval" : "10s",
"xpack.monitoring.collection.ml.job.stats.timeout" : "10s",
"xpack.monitoring.collection.node.stats.timeout" : "10s",
"xpack.monitoring.elasticsearch.collection.enabled" : "true",
"xpack.monitoring.enabled" : "true",
"xpack.monitoring.history.duration" : "168h",
"xpack.notification.email.account.gmail_account.profile" : "gmail",
"xpack.notification.email.account.gmail_account.smtp.auth" : "true",
"xpack.notification.email.account.gmail_account.smtp.host" : "smtp.gmail.com",
"xpack.notification.email.account.gmail_account.smtp.port" : "587",
"xpack.notification.email.account.gmail_account.smtp.starttls.enable" : "true",
"xpack.notification.email.account.gmail_account.smtp.user" : "qktestalert@gmail.com",
"xpack.notification.email.default_account" : "",
"xpack.notification.email.html.sanitization.allow" : [
"body",
"head",
"_tables",
"_links",
"_blocks",
"_formatting",
"img:embedded"
],
"xpack.notification.email.html.sanitization.disallow" : ,
"xpack.notification.email.html.sanitization.enabled" : "true",
"xpack.notification.jira.default_account" : "",
"xpack.notification.pagerduty.default_account" : "",
"xpack.notification.reporting.interval" : "15s",
"xpack.notification.reporting.retries" : "40",
"xpack.notification.reporting.warning.enabled" : "true",
"xpack.notification.slack.default_account" : "",
"xpack.rollup.enabled" : "true",
"xpack.rollup.task_thread_pool.queue_size" : "4",
"xpack.rollup.task_thread_pool.size" : "4",
"xpack.security.audit.enabled" : "false",
"xpack.security.audit.logfile.emit_node_host_address" : "false",
"xpack.security.audit.logfile.emit_node_host_name" : "false",
"xpack.security.audit.logfile.emit_node_id" : "true",
"xpack.security.audit.logfile.emit_node_name" : "false",
"xpack.security.audit.logfile.events.emit_request_body" : "false",
"xpack.security.audit.logfile.events.exclude" : ,
"xpack.security.audit.logfile.events.include" : [
"ACCESS_DENIED",
"ACCESS_GRANTED",
"ANONYMOUS_ACCESS_DENIED",
"AUTHENTICATION_FAILED",
"CONNECTION_DENIED",
"TAMPERED_REQUEST",
"RUN_AS_DENIED",
"RUN_AS_GRANTED"
],
"xpack.security.authc.anonymous.authz_exception" : "true",
"xpack.watcher.actions.bulk.default_timeout" : "",
"xpack.watcher.actions.index.default_timeout" : "",
"xpack.watcher.bulk.actions" : "1",
"xpack.watcher.bulk.concurrent_requests" : "0",
"xpack.watcher.bulk.flush_interval" : "1s",
"xpack.watcher.bulk.size" : "1mb",
"xpack.watcher.enabled" : "true",
"xpack.watcher.encrypt_sensitive_data" : "false",
"xpack.watcher.execution.default_throttle_period" : "5s",
"xpack.watcher.execution.scroll.size" : "0",
"xpack.watcher.execution.scroll.timeout" : "",
"xpack.watcher.history.cleaner_service.enabled" : "true",
"xpack.watcher.index.rest.direct_access" : "",
"xpack.watcher.input.search.default_timeout" : "",
"xpack.watcher.internal.ops.bulk.default_timeout" : "",
"xpack.watcher.internal.ops.index.default_timeout" : "",
"xpack.watcher.internal.ops.search.default_timeout" : "",
"xpack.watcher.stop.timeout" : "30s",
"xpack.watcher.thread_pool.queue_size" : "1000",
"xpack.watcher.thread_pool.size" : "20",
"xpack.watcher.transform.search.default_timeout" : "",
"xpack.watcher.trigger.schedule.ticker.tick_interval" : "500ms",
"xpack.watcher.watch.scroll.size" : "0"
}
}
Also find below logs:
[2020-05-25T19:19:56,581][WARN ][o.e.x.w.e.ExecutionService] [JALPESH] failed to execute watch [9b8f79c8-11c1-427d-97bf-ea8f7bd184f9]
[2020-05-25T19:20:56,641][WARN ][o.e.x.w.e.ExecutionService] [JALPESH] failed to execute watch [9b8f79c8-11c1-427d-97bf-ea8f7bd184f9]
[2020-05-25T19:24:59,153][ERROR][o.e.x.w.a.e.ExecutableEmailAction] [JALPESH] failed to execute action [9b8f79c8-11c1-427d-97bf-ea8f7bd184f9/email_1]
javax.mail.MessagingException: failed to send email with subject [Watch [test4] has exceeded the threshold] via account [gmail_account]
at org.elasticsearch.xpack.watcher.notification.email.EmailService.send(EmailService.java:171) ~[?:?]
at org.elasticsearch.xpack.watcher.notification.email.EmailService.send(EmailService.java:163) ~[?:?]
at org.elasticsearch.xpack.watcher.actions.email.ExecutableEmailAction.execute(ExecutableEmailAction.java:76) ~[?:?]
at org.elasticsearch.xpack.core.watcher.actions.ActionWrapper.execute(ActionWrapper.java:164) [x-pack-core-7.6.2.jar:7.6.2]
at org.elasticsearch.xpack.watcher.execution.ExecutionService.executeInner(ExecutionService.java:534) [x-pack-watcher-7.6.2.jar:7.6.2]
at org.elasticsearch.xpack.watcher.execution.ExecutionService.execute(ExecutionService.java:320) [x-pack-watcher-7.6.2.jar:7.6.2]
at org.elasticsearch.xpack.watcher.execution.ExecutionService.lambda$executeAsync$5(ExecutionService.java:421) [x-pack-watcher-7.6.2.jar:7.6.2]
at org.elasticsearch.xpack.watcher.execution.ExecutionService$$Lambda$4674/1721056180.run(Unknown Source) [x-pack-watcher-7.6.2.jar:7.6.2]
at org.elasticsearch.xpack.watcher.execution.ExecutionService$WatchExecutionTask.run(ExecutionService.java:627) [x-pack-watcher-7.6.2.jar:7.6.2]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:633) [elasticsearch-7.6.2.jar:7.6.2]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_40]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_40]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_40]
Caused by: javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials v17sm13696968pfc.190 - gsmtp
at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:947) ~[?:?]
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:858) ~[?:?]
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:762) ~[?:?]
at javax.mail.Service.connect(Service.java:342) ~[?:?]
at org.elasticsearch.xpack.watcher.notification.email.Account.lambda$executeConnect$2(Account.java:161) ~[?:?]
at org.elasticsearch.xpack.watcher.notification.email.Account$$Lambda$4974/246305874.run(Unknown Source) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_40]
at org.elasticsearch.xpack.watcher.notification.email.Account.executeConnect(Account.java:160) ~[?:?]
at org.elasticsearch.xpack.watcher.notification.email.Account.send(Account.java:119) ~[?:?]
at org.elasticsearch.xpack.watcher.notification.email.EmailService.send(EmailService.java:169) ~[?:?]
... 12 more