# Kibana watcher to email dashboard report error

**URL:** <https://discuss.elastic.co/t/kibana-watcher-to-email-dashboard-report-error/141429>\
**Category:** Kibana\
**Created:** [July 24, 2018, 4:55pm UTC](https://discuss.elastic.co/t/kibana-watcher-to-email-dashboard-report-error/141429 "2018-07-24T16:55:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gursharanaulakh](https://avatars.discourse-cdn.com/v4/letter/g/b2d939/32.png) [@gursharanaulakh](https://discuss.elastic.co/u/gursharanaulakh)\
**Post date:** [July 24, 2018, 4:55pm UTC](https://discuss.elastic.co/t/kibana-watcher-to-email-dashboard-report-error/141429/1 "2018-07-24T16:55:49Z")

</div>

## 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.

---

<div class="post-metadata">

**Author:** ![gursharanaulakh](https://avatars.discourse-cdn.com/v4/letter/g/b2d939/32.png) [@gursharanaulakh](https://discuss.elastic.co/u/gursharanaulakh)\
**Post date:** [July 24, 2018, 4:59pm UTC](https://discuss.elastic.co/t/kibana-watcher-to-email-dashboard-report-error/141429/2 "2018-07-24T16:59:17Z")

</div>

Just to add I am able to generate pdf manually from dashboard-\>reporting link.

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [July 24, 2018, 7:01pm UTC](https://discuss.elastic.co/t/kibana-watcher-to-email-dashboard-report-error/141429/3 "2018-07-24T19:01:10Z")

</div>

Seems like this could potentially be a bug but I'm not 100% sure. Could you create an issue in our GitHub repo so we can track it there?

---

<div class="post-metadata">

**Author:** ![gursharanaulakh](https://avatars.discourse-cdn.com/v4/letter/g/b2d939/32.png) [@gursharanaulakh](https://discuss.elastic.co/u/gursharanaulakh)\
**Post date:** [July 25, 2018, 12:54am UTC](https://discuss.elastic.co/t/kibana-watcher-to-email-dashboard-report-error/141429/4 "2018-07-25T00:54:53Z")

</div>

Sure, I will do that.  
Also, can you please help me to know the curl command to fetch/download pdf copy of dashboard.  
I am trying following and it always returns me http 500.

curl -X POST -H "kbn-xsrf:reporting" "url which I got from dashboard-\>reporting-\>generation Url"

Am I using the command correctly?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 22, 2018, 12:54am UTC](https://discuss.elastic.co/t/kibana-watcher-to-email-dashboard-report-error/141429/5 "2018-08-22T00:54:54Z")

</div>

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