# How to export Kibana (Dashboards, Visualizations and Searchs) from Command line (e.g curl) to json file

**URL:** <https://discuss.elastic.co/t/how-to-export-kibana-dashboards-visualizations-and-searchs-from-command-line-e-g-curl-to-json-file/129256>\
**Category:** Kibana\
**Created:** [April 24, 2018, 8:15am UTC](https://discuss.elastic.co/t/how-to-export-kibana-dashboards-visualizations-and-searchs-from-command-line-e-g-curl-to-json-file/129256 "2018-04-24T08:15:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edouard\_Fazenda](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@Edouard\_Fazenda](https://discuss.elastic.co/u/Edouard_Fazenda)\
**Post date:** [April 24, 2018, 8:15am UTC](https://discuss.elastic.co/t/how-to-export-kibana-dashboards-visualizations-and-searchs-from-command-line-e-g-curl-to-json-file/129256/1 "2018-04-24T08:15:43Z")

</div>

Dear Community,

I have Kibana 6.2.3 installed on my nodes and I wanted to know how I can export (Dashboards, Visualizations and Searchs) to a JSON file in order to backup the définitions in a versionning control system like git.

I wanted to make a script that will export the data in json file and after pushing it to git.

Is there a way i can query from elasticsearch the .kibana index to extract those data ?

Thanks in advance,

Best Regards,

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [April 24, 2018, 12:41pm UTC](https://discuss.elastic.co/t/how-to-export-kibana-dashboards-visualizations-and-searchs-from-command-line-e-g-curl-to-json-file/129256/2 "2018-04-24T12:41:31Z")

</div>

The objects are saved in the .kibana index in ES. You can just query the ES cluster and parse the result, but it will imply some work.  
There is also a Saved Object API: [https://github.com/elastic/kibana/pull/11632](https://github.com/elastic/kibana/pull/11632) but we cannot guarantee it won't change over time. It's work in progress pretty much, but usable.

---

<div class="post-metadata">

**Author:** ![Edouard\_Fazenda](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@Edouard\_Fazenda](https://discuss.elastic.co/u/Edouard_Fazenda)\
**Post date:** [April 26, 2018, 11:24am UTC](https://discuss.elastic.co/t/how-to-export-kibana-dashboards-visualizations-and-searchs-from-command-line-e-g-curl-to-json-file/129256/3 "2018-04-26T11:24:33Z")

</div>

Thanks for the response !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 24, 2018, 11:24am UTC](https://discuss.elastic.co/t/how-to-export-kibana-dashboards-visualizations-and-searchs-from-command-line-e-g-curl-to-json-file/129256/4 "2018-05-24T11:24:43Z")

</div>

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