Hi,
I encountered this error
{
"id": "email_admin",
"type": "email",
"status": "failure",
"reason": "MessagingException[failed to send email with subject [testing] via account [work]]; nested: MessagingException[Could not convert socket to TLS]; nested: SSLException[java.security.ProviderException: java.security.KeyException]; nested: ProviderException[java.security.KeyException]; nested: KeyException; "
}
here is my configuration
curl -XPUT 'http://localhost:9200/_watcher/watch/log_error_watch' -d '{
"trigger" : {
"schedule" : { "interval" : "60s" }
},
"input" : {
"http" : {
"request" : {
"host" : "localhost",
"port" : 9200,
"path" : "/filebeat-2016.10.16/_search?pretty",
"body" : "{"query" : { "match" : { "response" : "404"}}}"
}
}
},
"condition" : {
"always" : {}
},
"actions" : {
"email_admin" : {
"email": {
"to": "xxx@gmail.com",
"subject": "testing",
"body": "testing"
}
}
}
}'
watcher.actions.email.service.account:
work:
profile: gmail
smtp:
auth: true
starttls.enable: true
host: smtp.gmail.com
port: 587
user: xxx@gmail.com
password: xxx
does anyone know what is going wrong?