Hello all,
I have been trying to import a saved object json into kibana... I saved ~ 4 index-patterns/100 searches etc.. and I have found recommendations that you can import using curl something like this...
bash-4.2$
bash-4.2$ ls
export.json kibana.yml
bash-4.2$ curl -X POST -H "Content-Type: application/json" -H "kbn-xsrf: true" -d @export.json http://localhost:5601/api/kibana/dashboards/import
{"statusCode":400,"error":"Bad Request","message":""value" must be an object","validation":{"source":"payload","keys":["value"]}}bash-4.2$
Unfortunately as you can see this results in a curl failure...
I have inspected the JSON myself and see that it is actually a list of JSONs... I assume for the respective objects.
Is it possible to bulk import this JSON with multiple objects using a curl like this?
I have tried running this inside my kibana container, outside my docker-compose instance locally, and in another container.
I feel like something obvious is just not sticking out to me any help is appreciated... and unfortunately I can't really share the export.json... however if someone gives me one to test I can give it a go.
Cheers!