# Automating graphs and visual

**URL:** <https://discuss.elastic.co/t/automating-graphs-and-visual/110652>\
**Category:** Kibana\
**Created:** [December 7, 2017, 11:24am UTC](https://discuss.elastic.co/t/automating-graphs-and-visual/110652 "2017-12-07T11:24:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [December 7, 2017, 12:02pm UTC](https://discuss.elastic.co/t/automating-graphs-and-visual/110652/2 "2017-12-07T12:02:14Z")

</div>

Hello,  
It depends on how you want to set up the visualizations and graphs. Are those going to be the same for each installation or not? If they are going to be identical, you can use this solution:

> [@Import a visualisation using API](https://discuss.elastic.co/t/import-a-visualisation-using-api/72488):
>
> Hi all, I have exported a visualisation in Kibana, using the export button under settings. This has given me a JSON file. The name of the visualisation is Transaction-count. I have then deleted the visualisation from Kibana. I would now like to import the visualisation back into Kibana using the API. If I type curl -XPUT "[http://localhost:9200/.kibana/visualization/Transaction-count](http://localhost:9200/.kibana/visualization/Transaction-count)" -d I get the following error; {"error":{"root\_cause":[{"type":"mapper\_parsing\_exception","reason":"failed …

It will work even if you want them to be different, if you know how you want them to be before running the automation script, as you can have a bunch of them and import them according to your needs.

As for a snapshot of Kibana, you don't really need it, as long as you keep the same package (you can use the .tar.gz package so that you have all the settings contained in one folder) and for the rest, you need the .kibana index from ES, if you want to keep the same index patterns, visualizations ,etc.

---

_[View the full topic](https://discuss.elastic.co/t/automating-graphs-and-visual/110652)._
