To run a report manually, I send a POST _xpack/watcher/watch/cisco_ios_severity_dashboard/_execute
request using the Dev Tools Console in Kibana.
My watch is
{
"found": true,
"_id": "cisco_ios_severity_dashboard",
"_status": {
"version": 12,
"state": {
"active": true,
"timestamp": "2017-04-23T16:16:18.226Z"
},
"last_checked": "2017-04-27T06:00:00.074Z",
"last_met_condition": "2017-04-27T06:00:00.074Z",
"actions": {
"send_email": {
"ack": {
"timestamp": "2017-04-23T16:16:59.083Z",
"state": "ackable"
},
"last_execution": {
"timestamp": "2017-04-27T06:00:00.074Z",
"successful": true
},
"last_successful_execution": {
"timestamp": "2017-04-27T06:00:00.074Z",
"successful": true
}
}
}
},
"watch": {
"trigger": {
"schedule": {
"daily": {
"at": [
"06:00"
]
}
}
},
"input": {
"none": {}
},
"condition": {
"always": {}
},
"actions": {
"send_email": {
"email": {
"profile": "standard",
"attachments": {
"Cisco_IOS_Severity.pdf": {
"reporting": {
"url": "https://10.241.52.8:5601/api/reporting/generate/dashboard/f1cf65b0-1fa7-11e7-8b6d-7b620aec2238?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-24h,mode:quick,to:now))&_a=(filters:!(),options:(darkTheme:!f),panels:!((col:7,id:%27785e7d20-1fa6-11e7-8b6d-7b620aec2238%27,panelIndex:1,row:4,size_x:6,size_y:3,type:visualization),(col:1,id:c29df220-1fa7-11e7-8b6d-7b620aec2238,panelIndex:2,row:1,size_x:6,size_y:3,type:visualization),(col:7,id:%27041f9710-1faa-11e7-8b6d-7b620aec2238%27,panelIndex:3,row:1,size_x:6,size_y:3,type:visualization),(col:1,id:%272bf2f4d0-1faf-11e7-b3e8-7369c02ae27b%27,panelIndex:4,row:4,size_x:6,size_y:3,type:visualization),(col:1,id:%27590cc620-2398-11e7-8b6d-7b620aec2238%27,panelIndex:5,row:7,size_x:6,size_y:3,type:visualization),(col:7,id:%2715c30400-2399-11e7-8b6d-7b620aec2238%27,panelIndex:6,row:7,size_x:6,size_y:3,type:visualization)),query:(query_string:(analyze_wildcard:!t,query:%27*%27)),title:%27Cisco+IOS+Severity%27,uiState:(P-1:(vis:(params:(sort:(columnIndex:!n,direction:!n)))),P-2:(vis:(params:(sort:(columnIndex:!n,direction:!n)))),P-3:(vis:(params:(sort:(columnIndex:!n,direction:!n)))),P-4:(vis:(params:(sort:(columnIndex:!n,direction:!n)))),P-5:(vis:(params:(sort:(columnIndex:!n,direction:!n)))),P-6:(vis:(params:(sort:(columnIndex:!n,direction:!n))))))",
"retries": 6,
"interval": "10m",
"auth": {
"basic": {
"username": "elastic"
}
}
}
}
},
"to": [
"bill.anderson@oa.mo.gov"
],
"subject": "Kibana Cisco IOS Severity Report",
"body": {
"html": "Report is attached"
}
}
}
}
}
}
Clicking the Generate Printable PDF button
in Kibana does work. The watch runs successfully at the scheduled time. It just doesn't work when using the POST _xpack/watcher/watch/<watch id>/_execute
API request.