Hi,
Using Kibana 6.8.23
I am triying to obtain a url to download the csv data from a Discover query.
First I tried download a CSV using Share -> CSV Reports -> Copy POST URL but I got the following error:
{"statusCode":405,"error":"Method Not Allowed","message":"GET is not allowed"}
Searching the documentation I found the following page Automatically generate reports | Kibana Guide [8.2] | Elastic, so I tried using curl:
curl \
-XPOST \
-u elastic \
-H 'kbn-xsrf: true' \
'http://0.0.0.0:5601/api/reporting/generate/csv?jobParams=...'
But I get:
{
"statusCode": 400,
"error": "Bad Request",
"message": "child \"method\" fails because [\"method\" must be one of [HEAD, GET, POST, PUT, DELETE]]",
"validation": {
"source": "query",
"keys": [
"method"
]
}
}
Maybe it is a version problem and can be solved by updating Kibana.
Thank you in advance for your help.
Helena