But I cannot open the download file at all. I think it is because the url doesn't have '.pdf' suffix and it is opened in Chromium browser, not Chrome.
The following is the information of reporting in Kibana. The content of reporting file is PNG.I would like to know if there is a way to download/save the content 'PNG/PDF' of this url in my local folder?
To download the report, you don't need to open the file with a browser at all. You can just issue a GET-request for the report (e.g. in pdf or png) and save it to disk. Give the name of the file you are saving it to the correct extention (e.g. .pdf or .png), just to make sure it opens up fine locally.
It will depend a little on the programming language you're using, but with cUrl it would look something like this from the command line.
Thanks a lot Thomas! I download PNG file successfully by using 'wget' and 'open-uri'(the link you put). Both of them work. The problem why I can't download the file is: After sending POST URL, Kibana server needs some time to generate the report. It will show me 'pending', 'processing'. If I try to download report immediately, the file is still blank. So I need to put 'sleep(7.0)' before the download code.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.