# How do a pre load a visualization after fresh deployment

**URL:** <https://discuss.elastic.co/t/how-do-a-pre-load-a-visualization-after-fresh-deployment/112855>\
**Category:** Kibana\
**Created:** [December 21, 2017, 4:06pm UTC](https://discuss.elastic.co/t/how-do-a-pre-load-a-visualization-after-fresh-deployment/112855 "2017-12-21T16:06:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mathias/32/23176_2.png) [@mathias](https://discuss.elastic.co/u/mathias)\
**Post date:** [December 21, 2017, 4:06pm UTC](https://discuss.elastic.co/t/how-do-a-pre-load-a-visualization-after-fresh-deployment/112855/1 "2017-12-21T16:06:27Z")

</div>

Hi,

I redeploy my elk-stack frequently and would like to load exported visualizations and dashboards at startup.

This worked fine in elk 5.6.3 but in elk 6.1 the procedure has changed or possible there are no procedure to do it.

In 5.6.3 I did like this:  
curl -s -XPUT '[http://elasticsearch.service.consul:9200/.kibana/visualization/System\_Navigation](http://elasticsearch.service.consul:9200/.kibana/visualization/System_Navigation)' -H "kbn-version:5.6.3" -H "Content-Type: application/json" -d@/visualization/System\_Navigation.json

The same command works find in .kibana-6 index but kibana does not look at the same pace for visualizations and dashboards as before.

How can I upload visualizations and dashboards using curl?

Thanks  
Mathias

---

<div class="post-metadata">

**Author:** ![chrisronline](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrisronline/32/28230_2.png) [@chrisronline](https://discuss.elastic.co/u/chrisronline)\
**Post date:** [December 21, 2017, 6:44pm UTC](https://discuss.elastic.co/t/how-do-a-pre-load-a-visualization-after-fresh-deployment/112855/2 "2017-12-21T18:44:44Z")

</div>

Hi @mathias,

In 6.0, we removed [mapping types](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/removal-of-types.html) from newly created indices. Because of that, we [made changes to the .kibana index](https://www.elastic.co/blog/kibana-6-removal-of-mapping-types).

From your example, the `.kibana/visualization/`path will not work because there is no mapping type for `visualization` in the `.kibana` index. It's just `doc` now. A valid endpoint would be: `/.kibana/doc/System_Navigation`.

Thanks,  
Chris

---

<div class="post-metadata">

**Author:** ![Shubham\_Mahajan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shubham_mahajan/32/22140_2.png) [@Shubham\_Mahajan](https://discuss.elastic.co/u/Shubham_Mahajan)\
**Post date:** [January 17, 2018, 6:51am UTC](https://discuss.elastic.co/t/how-do-a-pre-load-a-visualization-after-fresh-deployment/112855/3 "2018-01-17T06:51:19Z")

</div>

@mathias Hey mathias, i am trying to do the same thing. Were your issue resolved using the mentioned solution.

---

<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:** [February 14, 2018, 6:51am UTC](https://discuss.elastic.co/t/how-do-a-pre-load-a-visualization-after-fresh-deployment/112855/4 "2018-02-14T06:51:25Z")

</div>

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