I am trying to add a custom watcher to generate a PNG dashboard and email to a custom email but I am having issues. When I simulate the watcher, my simulation results error out with email issues. I am using Elastic Cloud:
"error": {
"root_cause": [
{
"type": "messaging_exception",
"reason": "failed to send email with subject [Error Monitoring Report] via account [work]"
}
],
"type": "messaging_exception",
"reason": "failed to send email with subject [Error Monitoring Report] via account [work]",
"caused_by": {
"type": "send_failed_exception",
"reason": "Invalid Addresses",
"caused_by": {
"type": "s_m_t_p_address_failed_exception",
"reason": "554 5.7.1 <some_email@gmail.com>: Recipient address rejected: Access denied\n"
}
}
}
If possible, the email generated, I would like the PNG image as the body of the message, not the attachment as well. I assumed its because I dont have an email account setup (possible) and I looked at this link: Email action | Elasticsearch Guide [6.6] | Elastic but I cannot find a way to edit the .yml file in elastic cloud.
I will try that out but then the system wont work for us in how I am trying to use it. We dont want to white-list the user. Here is the use-case:
Create generic dashboards of IoT data.
Generate custom watchers for each customer with proper filters for each dashboard.
Email gets sent out to each customer with the PNG file.
Interesting use case. On Elastic Cloud, emails must be sent through EC servers and recipients must be whitelisted. Given those requirements, one possible workaround would be to setup your watchers as webhook actions instead: https://www.elastic.co/guide/en/x-pack/current/actions-webhook.html
This would require developing your own outside microservice for the watcher to hook into. The microservice would then be responsible for sending out the customer emails.
Of course, you could always ask your customers to kindly accept being whitelisted by Elastic Cloud
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.