# Export kibana all data from CLI (Like Export button in kibana)

**URL:** <https://discuss.elastic.co/t/export-kibana-all-data-from-cli-like-export-button-in-kibana/99772>\
**Category:** Kibana\
**Created:** [September 7, 2017, 9:54pm UTC](https://discuss.elastic.co/t/export-kibana-all-data-from-cli-like-export-button-in-kibana/99772 "2017-09-07T21:54:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpuserh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rpuserh/32/63367_2.png) [@rpuserh](https://discuss.elastic.co/u/rpuserh)\
**Post date:** [September 7, 2017, 9:54pm UTC](https://discuss.elastic.co/t/export-kibana-all-data-from-cli-like-export-button-in-kibana/99772/1 "2017-09-07T21:54:34Z")

</div>

Hi,

I need to setup cron and export all kibana data with curl and then use UI to Import .  
I tried to get XHR requests from browser  
It give me 3 request  
/es\_admin/.kibana/visualization/\_search?size=1000&scroll=1m&sort=\_doc  
/es\_admin/.kibana/search/\_search?size=1000&scroll=1m&sort=\_doc  
/es\_admin/.kibana/dashboard/\_search?size=1000&scroll=1m&sort=\_doc  
But they are not importable

I know that i can use elastic search dump but i will have problem restoring from UI

Any good way for doing this ?

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [September 9, 2017, 5:56am UTC](https://discuss.elastic.co/t/export-kibana-all-data-from-cli-like-export-button-in-kibana/99772/2 "2017-09-09T05:56:42Z")

</div>

What version of Kibana are you using? You can probably [export the saved objects from the UI](https://www.elastic.co/guide/en/kibana/current/managing-saved-objects.html), which is necessary if you want to import them with the UI. Alternatively, you can can export/import them through elasticsearch and bypass the UI completely. Exporting from one and importing to the other is not going to work though.

---

<div class="post-metadata">

**Author:** ![rpuserh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rpuserh/32/63367_2.png) [@rpuserh](https://discuss.elastic.co/u/rpuserh)\
**Post date:** [September 11, 2017, 5:07pm UTC](https://discuss.elastic.co/t/export-kibana-all-data-from-cli-like-export-button-in-kibana/99772/3 "2017-09-11T17:07:13Z")

</div>

Hi @spalger ,  
Thank you for your response.  
Im running kibana-5.4.0  
Export the saved objects from the UI is working perfectly but  
Im looking to export same data from command line with curl.  
Is there any way to do that ?

---

<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:** [October 9, 2017, 5:07pm UTC](https://discuss.elastic.co/t/export-kibana-all-data-from-cli-like-export-button-in-kibana/99772/4 "2017-10-09T17:07:18Z")

</div>

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