Reputation: 21
0
I am trying to generate PDF reports and download them using a script. I followed below instructions.
I am able to queue the report and i also got a download url /api/.../download/xyzdrfd but when i am trying WGET on the url, It's not working. I have no idea how to download that report using APIs so just tried with WGET.
Any-idea how to download the reports using API call or programmatically?
Upvotes: 2
Views: 1485
Reputation: 96
Next step for downloading the report (after successfuly queued & processed):
Call GET request with basic auth and kbn-xsrf header, example:
curl -O -XGET -u elastic -H 'kbn-xsrf: true' 'https://your-elastic-host/api/reporting/jobs/download/l7q4xw77000z7a3357gfmdex'
Upvotes: 0