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

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 ?

1 Like

What version of Kibana are you using? You can probably export the saved objects from the UI, 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.

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 ?

1 Like

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