I have setup kibana watcher to email me pdf attachment of my dashboard but every time it fails with connection time out error.
Watcher setting:
"actions": {
"email_admin": {
"email": {
"profile": "standard",
"attachments": {
"file.pdf": {
"http": {
"content_type": "application/pdf",
"request": {
"method": "POST",
"headers": {
"kbn-xsrf": "reporting"
},
"read_timeout": "300s",
"scheme": "https",
"url": "url which I got from dashboard->reporting->generation Url"
}
}
}
},
"to": [
"email"
],
"subject": "subject"
}
}
Error message:
{
"watch_id": "XXXXX",
"node": "LoD1SjlZQ06xIlHt8SD1-Q",
"state": "executed",
"status": {
"state": {
"active": true,
"timestamp": "2018-07-24T16:17:30.137Z"
},
"last_checked": "2018-07-24T16:38:32.275Z",
"last_met_condition": "2018-07-24T16:38:32.275Z",
"actions": {
"email_admin": {
"ack": {
"timestamp": "2018-07-24T16:17:30.137Z",
"state": "awaits_successful_execution"
},
"last_execution": {
"timestamp": "2018-07-24T16:38:32.275Z",
"successful": false,
"reason": ""
}
}
},
"execution_state": "executed",
"version": -1
},
"trigger_event": {
"type": "schedule",
"triggered_time": "2018-07-24T16:38:32.275Z",
"schedule": {
"scheduled_time": "2018-07-24T16:38:32.137Z"
}
},
"input": {
"none": {}
},
"condition": {
"always": {}
},
"metadata": {
"name": "XXXXXXX",
"xpack": {
"type": "json"
}
},
"result": {
"execution_time": "2018-07-24T16:38:32.275Z",
"execution_duration": 20325,
"input": {
"type": "none",
"status": "success",
"payload": {}
},
"condition": {
"type": "always",
"status": "success",
"met": true
},
"actions": [
{
"id": "email_admin",
"type": "email",
"status": "failure",
"error": {
"root_cause": [
{
"type": "connect_timeout_exception",
"reason": "Connect to :443 [hostname/ipaddress, kibana-unified.prod.egencia.cloud/54.171.24.40] failed: connect timed out"
}
],
"type": "connect_timeout_exception",
"reason": "Connect to Connect to :443 [hostname/ipaddress, :443 [hostname/ipaddress] failed: connect timed out",
"caused_by": {
"type": "socket_timeout_exception",
"reason": "connect timed out"
}
}
}
]
},
"messages": []
}
Any help on this will be appreciable.
Thanks in advance.