# Import dashboards etc via command line

**URL:** <https://discuss.elastic.co/t/import-dashboards-etc-via-command-line/77830>\
**Category:** Kibana\
**Created:** [March 8, 2017, 2:09pm UTC](https://discuss.elastic.co/t/import-dashboards-etc-via-command-line/77830 "2017-03-08T14:09:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alistair\_Hardy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alistair_hardy/32/16182_2.png) [@Alistair\_Hardy](https://discuss.elastic.co/u/Alistair_Hardy)\
**Post date:** [March 8, 2017, 2:09pm UTC](https://discuss.elastic.co/t/import-dashboards-etc-via-command-line/77830/1 "2017-03-08T14:09:18Z")

</div>

So we're looking into deploying the elastic stack on multiple, indipendant servers that are built using puppet.  
While I've got the Elastic stack installing, beats being installed and data going into elastic etc, I am yet to find a way to import the saved searches, visualisations and dashboards via command line.  
Can this be done?  
It's going to be a real pain otherwise.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [March 8, 2017, 5:09pm UTC](https://discuss.elastic.co/t/import-dashboards-etc-via-command-line/77830/2 "2017-03-08T17:09:17Z")

</div>

@Alistair_Hardy if you wanted an exact replica of Kibana multiple times, you could use the Snapshot/Restore feature of Elasticsearch itself on the .kibana index.

We also have an existing Enhancement Request to expose the underlying mechanism that we use for Import/Export via the Kibana UI as an API here: [https://github.com/elastic/kibana/issues/4759](https://github.com/elastic/kibana/issues/4759)

---

<div class="post-metadata">

**Author:** ![Alistair\_Hardy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alistair_hardy/32/16182_2.png) [@Alistair\_Hardy](https://discuss.elastic.co/u/Alistair_Hardy)\
**Post date:** [March 9, 2017, 9:54am UTC](https://discuss.elastic.co/t/import-dashboards-etc-via-command-line/77830/3 "2017-03-09T09:54:28Z")

</div>

The enhancement request doesn't fill me with hope that it's been requested in August 2015 however I will look into your idea to restore the kibana index into elasticsearch itself.

---

<div class="post-metadata">

**Author:** ![juju](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@juju](https://discuss.elastic.co/u/juju)\
**Post date:** [March 19, 2017, 1:59am UTC](https://discuss.elastic.co/t/import-dashboards-etc-via-command-line/77830/4 "2017-03-19T01:59:07Z")

</div>

It's really a pity to have no default mechanisms to import/export dashboards/visualization/objects. That makes backup and sharing a lot more complicate than it should be.  
Especially when you look at \*beats and the import\_dashboards binary does exactly that.  
[https://www.elastic.co/guide/en/beats/libbeat/current/import-dashboards.html](https://www.elastic.co/guide/en/beats/libbeat/current/import-dashboards.html)

There are plenty of thread on this subject

> [@How to backup/restore searches and dashboards](https://discuss.elastic.co/t/how-to-backup-restore-searches-and-dashboards/69223):
>
> Hi, a cup of coffee and a doughnut if you explain how to "backup/restore" searches and dashboard selectively or all at once. Thanks! MarkD:-)

> [@Export Saved Objects via REST APi](https://discuss.elastic.co/t/export-saved-objects-via-rest-api/72028):
>
> Hi, I'm trying to figure out the best way to programatically export all of the saved objects - Saved Searches, Visualizations, and Dashboard - as individual documents. I want to be able to create an SDLC around the Dashboard development process and I need to be able to capture anything/everything that a final Dashboard is dependent on, and then store that into a repository for versioning. So far, the only way I've been able to find (at least per the documentation) to export these items is thr…

> [@Importing dashboards via CLI 5.1.1](https://discuss.elastic.co/t/importing-dashboards-via-cli-5-1-1/70236):
>
> What I want to do is import the .json dashboards that Kibana generates with: Management -\> Saved Objects -\> Export And then import them via command line or something that can be automated and doesn't require me to use the web interface. Is this possible to do ?

Hopefully will make it soon.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [March 20, 2017, 1:14pm UTC](https://discuss.elastic.co/t/import-dashboards-etc-via-command-line/77830/5 "2017-03-20T13:14:02Z")

</div>

@juju completely agree, thank you for sharing those additional mentions of people wanting to do the same thing. This is definitely something that we want to add in the near future.

---

<div class="post-metadata">

**Author:** ![juju](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@juju](https://discuss.elastic.co/u/juju)\
**Post date:** [March 26, 2017, 7:33pm UTC](https://discuss.elastic.co/t/import-dashboards-etc-via-command-line/77830/6 "2017-03-26T19:33:49Z")

</div>

seems possible here

> <https://github.com/rocknsm/rock-dashboards/blob/master/load.sh>

  
not the most intuitive but a good workaround

---

<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:** [April 23, 2017, 7:33pm UTC](https://discuss.elastic.co/t/import-dashboards-etc-via-command-line/77830/7 "2017-04-23T19:33:54Z")

</div>

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