Is there a way to put kibana dashboard png report in the body of the email

From the Documentation to generate email reports in Kibana using Watcher as attachments, but is there a way to add the PNG as part of the email? embedded image within the email body.

There seems to an option body.html, Has anyone used this?

https://www.elastic.co/guide/en/elasticsearch/reference/current/actions-email.html#email-action-attributes

Dear sushmamagest,
Thanks for your question, I 've asked the team about options in this case
best,
Matthias

I case anyone is trying to solve this. Here is how i did it.

 "actions": {
    "email_report": {
      "email": {
        "profile": "standard",
        "attachments": {
          "weekly_report.png": {
            "reporting": {
              "url": "http://url.com",
              "retries": 10,
              "interval": "5m",
              "inline": true,
              "auth": {
                "basic": {
                  "username": "abc",
                  "password": "password"
                }
              }
            }
          }
        },
        "to": [
          "sm@email.com"
        ],
        "subject": "Daily - Monitoring Report",
        "body": {
          "html": "<p><b> Summary - 2 Week Trend <b><p> <img src=weekly_report.png>"
        }
      }
    }
  }
1 Like

Thanks a lot for sharing this!
Best,
Matthias

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.