Import dashboards and visualizations with ElasticDump

Hello! I'm trying to import via elasticdump some json files that I manually exported via kibana web interface. But seems that the import is not working.

Here's the output of the command:

root@csc-elk-elastic-logstash-container-472da4f8:~# /opt/elasticdump/node_modules/elasticdump/bin/elasticdump --input=test.json --output=http://10.11.25.147:9200/.kibana --type=data
Mon, 25 Jun 2018 18:08:13 GMT | starting dump
Mon, 25 Jun 2018 18:08:13 GMT | got 1 objects from source file (offset: 0)
Mon, 25 Jun 2018 18:08:14 GMT | sent 1 objects to destination elasticsearch, wrote 0
Mon, 25 Jun 2018 18:08:14 GMT | got 0 objects from source file (offset: 1)
Mon, 25 Jun 2018 18:08:14 GMT | Total Writes: 0
Mon, 25 Jun 2018 18:08:14 GMT | dump complete

The main question is: is that possible to import dashboards and visualizations throught elasticdump?

The response from Kibana's saved object API's are not compatible with ElasticDump.

It is best to use Kibana's saved object APIs for importing and exporting. Documentation can be found at https://www.elastic.co/guide/en/kibana/6.3/saved-objects-api.html.

Thanks @Nathan_Reese! I really appreciate your help.

Just to document, I did some workaround: I created the objects manually via web interface and then, I dumped the .kibana index. With the .kibana index json file, I got the right json format that is compatible with ElasticDump and it worked!

I know that the link that you provided tells that it is not safe, but I will be aware of the changes in future versions. I will also try to do to it like the documentation says to have a alternative just in case.

Thanks once again

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.