# How to import kibana dashboard from commandline

**URL:** <https://discuss.elastic.co/t/how-to-import-kibana-dashboard-from-commandline/141104>\
**Category:** Kibana\
**Created:** [July 23, 2018, 8:09am UTC](https://discuss.elastic.co/t/how-to-import-kibana-dashboard-from-commandline/141104 "2018-07-23T08:09:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohit02bits](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@rohit02bits](https://discuss.elastic.co/u/rohit02bits)\
**Post date:** [July 23, 2018, 8:09am UTC](https://discuss.elastic.co/t/how-to-import-kibana-dashboard-from-commandline/141104/1 "2018-07-23T08:09:08Z")

</div>

As of now I have to manually import the kibana dashboard. i am looking at an option to automate the process via script

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [July 23, 2018, 2:04pm UTC](https://discuss.elastic.co/t/how-to-import-kibana-dashboard-from-commandline/141104/2 "2018-07-23T14:04:17Z")

</div>

You can get complete Kibana metadata from command line using cURL. Only thing you need to have is access to Elasticsearch.

Elasticsearch stores complete Kibana metadata in .kibana (default and if you want it to store in new index then you can configure it in kibana.yml). Using Elasticsearch GET API you can retrieve index-patterns, visualizations, dashboards, kibana settings etc.

Examples to get Kibana visualizations and dashboards:

curl -XGET "[http://xxx.xxx.xxx.xxx:9200/.kibana/dashboard/dashboard\_name?pretty=1](http://xxx.xxx.xxx.xxx:9200/.kibana/dashboard/dashboard_name?pretty=1)"  
curl -XGET "[http://xxx.xxx.xxx.xxx:9200/.kibana/visualization/visualization\_name?pretty=1](http://xxx.xxx.xxx.xxx:9200/.kibana/visualization/visualization_name?pretty=1)"  
Hope this Helps!

Cheers  
Rashmi

---

<div class="post-metadata">

**Author:** ![rohit02bits](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@rohit02bits](https://discuss.elastic.co/u/rohit02bits)\
**Post date:** [July 30, 2018, 6:09am UTC](https://discuss.elastic.co/t/how-to-import-kibana-dashboard-from-commandline/141104/3 "2018-07-30T06:09:55Z")

</div>

Thanks that worked

---

<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:** [August 27, 2018, 6:09am UTC](https://discuss.elastic.co/t/how-to-import-kibana-dashboard-from-commandline/141104/4 "2018-08-27T06:09:58Z")

</div>

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