# Maps - how to export

**URL:** <https://discuss.elastic.co/t/maps-how-to-export/178596>\
**Category:** Kibana\
**Created:** [April 26, 2019, 9:02am UTC](https://discuss.elastic.co/t/maps-how-to-export/178596 "2019-04-26T09:02:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Babadofar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/babadofar/32/44803_2.png) [@Babadofar](https://discuss.elastic.co/u/Babadofar)\
**Post date:** [April 26, 2019, 9:02am UTC](https://discuss.elastic.co/t/maps-how-to-export/178596/1 "2019-04-26T09:02:06Z")

</div>

Hi, The Maps app in 6.7.1 is awesome, so much that it would be great to be able to export maps configuration and import into other clusters. How is this possible in the solution today? Where is the maps configuration stored?  
Thanks for the great work 😄

---

<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:** [April 26, 2019, 3:18pm UTC](https://discuss.elastic.co/t/maps-how-to-export/178596/2 "2019-04-26T15:18:24Z")

</div>

Hey @Babadofar, the Import/Export UI in Kibana in 6.7.1 only works with Visualizations, Saved Searches, Dashboards and Index Patterns. We're working on improving this situation [here](https://github.com/elastic/kibana/pull/34896) but until that work is done you can use the [Saved Object APIs](https://www.elastic.co/guide/en/kibana/current/saved-objects-api.html) to get and create the map objects.

---

<div class="post-metadata">

**Author:** ![Babadofar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/babadofar/32/44803_2.png) [@Babadofar](https://discuss.elastic.co/u/Babadofar)\
**Post date:** [April 26, 2019, 4:07pm UTC](https://discuss.elastic.co/t/maps-how-to-export/178596/3 "2019-04-26T16:07:12Z")

</div>

Thanks! Glad to know there is a solution. Can you give some more details? Is this a separate type?  
I couldn't find anything using any of the suggested types: [https://www.elastic.co/guide/en/kibana/6.7/saved-objects-api-get.html](https://www.elastic.co/guide/en/kibana/6.7/saved-objects-api-get.html)

---

<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:** [April 26, 2019, 5:27pm UTC](https://discuss.elastic.co/t/maps-how-to-export/178596/4 "2019-04-26T17:27:55Z")

</div>

The following curl will return all of the map saved objects:

```auto
curl http://localhost:5601/api/saved_objects/_find?type=map

```

Using the response of the find, you can then execute a GET for the specific map using the equivalent of:

```auto
curl http://localhost:5601/api/saved_objects/map/2c9c1f60-1909-11e9-919b-ffe5949a18d2

```

---

<div class="post-metadata">

**Author:** ![Babadofar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/babadofar/32/44803_2.png) [@Babadofar](https://discuss.elastic.co/u/Babadofar)\
**Post date:** [April 28, 2019, 3:58pm UTC](https://discuss.elastic.co/t/maps-how-to-export/178596/5 "2019-04-28T15:58:55Z")

</div>

Here's a tiny python 2.7 script for those in need . Once uploaded, insert the id into the appropriate part of the maps url to view your newly imported glory.

```
import requests
from_kibana ='https://kibana'
to_kibana = 'https://kibana2'
r = requests.get(from_kibana + '/api/saved_objects/_find?type=map')
js = r.json()
mapconfig = js['saved_objects'][0]['attributes']
mapout = {'attributes': mapconfig}
p = requests.post(to_kibana +'/api/saved_objects/map/vehicles' , 
	 json=mapout, headers={'kbn-xsrf':'true'} )
print(p)
print(p.json())
print('check that map was uploaded')
r = requests.get(to_kibana + '/api/saved_objects/_find?type=map')
print(r.text)
```

---

<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:** [May 26, 2019, 3:59pm UTC](https://discuss.elastic.co/t/maps-how-to-export/178596/6 "2019-05-26T15:59:03Z")

</div>

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