# Import dashboard and visualization objects using a script

**URL:** <https://discuss.elastic.co/t/import-dashboard-and-visualization-objects-using-a-script/84962>\
**Category:** Kibana\
**Created:** [May 8, 2017, 5:47pm UTC](https://discuss.elastic.co/t/import-dashboard-and-visualization-objects-using-a-script/84962 "2017-05-08T17:47:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andypark](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@andypark](https://discuss.elastic.co/u/andypark)\
**Post date:** [May 8, 2017, 5:47pm UTC](https://discuss.elastic.co/t/import-dashboard-and-visualization-objects-using-a-script/84962/1 "2017-05-08T17:47:24Z")

</div>

Hi guys,

I am working on automated scripts for setting up and running the elastic stack tools for our log analysis purpose within my company. One thing that I could not create a script for was to import dashboard and visualization objects. Using the tools would be so much easier if we can run a script for starting up the tools as well as importing a json file that contains all the dashboards and visualization objects. Could you help me out?

Thanks,  
Andy

---

<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:** [May 8, 2017, 6:31pm UTC](https://discuss.elastic.co/t/import-dashboard-and-visualization-objects-using-a-script/84962/2 "2017-05-08T18:31:59Z")

</div>

Hi

Currently we do not have any in-house tools to import a json file with all dashboards and visualization objects. I have seen users write a Python script that pulls the dashboards you want from ES/Kibana, enumerates the panels in the JSON of the dashboard, grabs those visualizations from Kibana and then looks for the index-patterns each of the visualizations uses and grabs those. Once you have all these documents  
re-index them to the target index/ES host as a work around.

There is an open PR to cater to this request. You can subscribe to it for updates.

> <https://github.com/elastic/kibana/pull/10858>

Thanks  
Rashmi

---

<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:** [June 5, 2017, 6:35pm UTC](https://discuss.elastic.co/t/import-dashboard-and-visualization-objects-using-a-script/84962/3 "2017-06-05T18:35:52Z")

</div>

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