Hi,
I have created a kibana dashboard and exported it. This have a .ndjson file with me. Now I want to import this dashboard to kibana (other severs) using ansible playbook using the .ndjson file i already have. How can I do it.
Hallo @Neelam_Zanvar
Does this documentation answer your question?
Yes, it looks like there is something wrong with the "Copy as cURL".
Try
curl -X POST http://localhost:5601/api/saved_objects/_import?createNewCopies=true -H "kbn-xsrf: true" --form file=@file.ndjson -u <usename:password>
And ensure you have a file file.ndjson in the directory where you are sending the request from. Also note this request assumes you have Kibana running on localhost.
worked ! Thank you
