Is it possible to automatically send those reports files after generating?

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 :frowning:

"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 !

Is it working for you?
I tried using GET /api/reporting/generateReport/ in the dev-tools from kibana but got an error
“error” : “no handler found for uri [/api/reporting/generateReport/?pretty=true] and method [GET]”

Hi !
Can you give more details?

The GET /api/reporting/generateReport/ call needs a report ID. So it should be a report already generated. I think this is what the error is telling you.



We are trying to automatize the creation of report to send them afterwards via mail.
We have kibana working with SAML and internal users.
When trying to get the report via postman/insomnia (browser obviously), it is working with the following:

  • Basic authentication + cookie: security_authentication.

When trying without the cookie, we receive the following:
“statusCode”: 500,
“error”: “Internal Server Error”,
“message”: “waiting for selector "#dashboardViewport" failed: timeout 60000ms exceeded”
Which does not make a lot of sens right now. Is it possible to trigger the report creation without the cookie ? Why is elasticsearch creating the report searching for the html element with id dashboardViewport is also confusing…

If anyone can help, it would be wonderful :slight_smile: !