Hello guys !
I’ve just upgraded ODFE version from 1.3 to 1.13 (ELS 7.3.2 → 7.10.2).
I’m trying out the reporting plugin, the only interesting part I found for the upgrade.
Is it possible to send those PDF automatically by email ?
I can’t see any options to do this. It’s available in the alerting parts though.
Right now, I’m developing my own email sender, grabbing PDF from Kibana Reporting plugin API.
EDIT#2: I fixed the problem, it required a special Cookie. So first I call /api/reporting/reports to generate it.
SOLVED: Trying to get by API the PDF generated by the scheduler, calling GET /api/reporting/generateReport/${report_id}
It works by Postman but by Python script It doesn’t work
{"statusCode":500,
"error":"Internal Server Error",
"message":"waiting for selector \\"#dashboardViewport\\" failed: timeout 60000ms exceeded"}
Found some log in kibana :
TimeoutError: waiting for selector \"#dashboardViewport\" failed: timeout 60000ms exceeded\n at new WaitTask (/usr/share/kibana/plugins/opendistroReportsKibana/node_modules/puppeteer-core/lib/DOMWorld.js:549:28)\n at DOMWorld._waitForSelectorOrXPath (/usr/share/kibana/plugins/opendistroReportsKibana/node_modules/puppeteer-core/lib/DOMWorld.js:478:22)\n at DOMWorld.waitForSelector (/usr/share/kibana/plugins/opendistroReportsKibana/node_modules/puppeteer-core/lib/DOMWorld.js:432:17)\n at Frame.waitForSelector (/usr/share/kibana/plugins/opendistroReportsKibana/node_modules/puppeteer-core/lib/FrameManager.js:627:47)\n at Frame.<anonymous> (/usr/share/kibana/plugins/opendistroReportsKibana/node_modules/puppeteer-core/lib/helper.js:112:23)\n at Page.waitForSelector (/usr/share/kibana/plugins/opendistroReportsKibana/node_modules/puppeteer-core/lib/Page.js:1095:29)\n at createVisualReport (/usr/share/kibana/plugins/opendistroReportsKibana/server/routes/utils/visual_report/visualReportHelper.ts:129:18) name: 'TimeoutError'
Thank you !
Thi