Watcherのemail actionで、送るメールにdashboardのpdfファイルを添付したいと考えています。
下記URLを参考に設定をしているのですが、上手くいきません。
https://www.elastic.co/guide/en/elasticsearch/reference/7.3/actions-email.html#configuring-email-attachments
設定した条件(trigger,input,condition)に合致した場合に、email actionで添付なしのメールを送ることはできています。
動作環境
- Elasticsearch 7.3.0 (on Elastic Cloud)
- Kibana 7.3.0 (on nginx - EC2(Ubuntu 16.04 LTS) )
Watch json
"actions": {
"email_admin": {
"email": {
"attachments": {
"dashboard.pdf": {
"reporting": {
"url": "dashboard->share->PDF Reports->Copy POST URL (https)"
}
}
},
"from": "source_address@mydomain.com",
"to": "destination_address@mydomain.com",
"subject": "~~~~",
"body": {
"text": "~~~~"
}
}
}
}
Simulation results
error": {
"root_cause": [
{
"type": "s_s_l_handshake_exception",
"reason": "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
}
],
不明点
大きく2つあります。
1.actions.email_admin.email.attachment.dashboard.pdf.reporting.urlに設定する値はこれで正しいのか?
2.エラーメッセージを解消するには、何を対応する必要があるのか?
色々と調べてはいるのですが、ピンとくる情報が見つけられず途方に暮れています。
初心者質問で申し訳ないのですが、情報ありましたらお願いいたします。