# Sharing of Pre-Configured Dashboard

**URL:** <https://discuss.elastic.co/t/sharing-of-pre-configured-dashboard/91052>\
**Category:** Kibana\
**Created:** [June 28, 2017, 7:07am UTC](https://discuss.elastic.co/t/sharing-of-pre-configured-dashboard/91052 "2017-06-28T07:07:35Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [June 28, 2017, 7:07am UTC](https://discuss.elastic.co/t/sharing-of-pre-configured-dashboard/91052/1 "2017-06-28T07:07:35Z")

</div>

Hello all,  
I created a Dashboard now i wants to export it to another person for visualization through shell script so i wants to know the location where the json format is stored

Thanks & Regards  
Shrikant

---

<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:** [June 28, 2017, 11:09am UTC](https://discuss.elastic.co/t/sharing-of-pre-configured-dashboard/91052/2 "2017-06-28T11:09:25Z")

</div>

Hello,

The JSON is saved in the .kibana index on your ES instance so you can get it from there via cURL.

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [June 28, 2017, 11:20am UTC](https://discuss.elastic.co/t/sharing-of-pre-configured-dashboard/91052/3 "2017-06-28T11:20:00Z")

</div>

Hello Marius  
Actually i wants to to create a script so that i can share my preconfigured dashboard and for that we must know where that file is stored so that we can replace it their

Thanks & Regards  
Shrikant

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [June 28, 2017, 11:25am UTC](https://discuss.elastic.co/t/sharing-of-pre-configured-dashboard/91052/4 "2017-06-28T11:25:42Z")

</div>

Hello Marius  
I got stuck here as i dont want to import json file in dashboard manually. I wants to import it through shell script but for that we must be aware of the location where that json file is stored

Thanks & Regards

---

<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:** [June 28, 2017, 11:27am UTC](https://discuss.elastic.co/t/sharing-of-pre-configured-dashboard/91052/5 "2017-06-28T11:27:14Z")

</div>

I don't understand what you want here. There is no .json file stored on the disk as is. All Kibana objects are stored in Elasticsearch and retrieved from there. You can do a GET request on the .kibana index to retrieve your dashboard (but you need to know it's ID) and a POST request in the new .kibana index so that it will be imported.

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [June 28, 2017, 11:35am UTC](https://discuss.elastic.co/t/sharing-of-pre-configured-dashboard/91052/6 "2017-06-28T11:35:07Z")

</div>

![](https://us1.discourse-cdn.com/elastic/original/3X/5/8/58f3391aabbbfae8367289a8efd252444cdee7c8.png)  
I am talking about this file it is the exported dashboard json file which is generated when we export our dashboard

---

<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:** [June 28, 2017, 11:38am UTC](https://discuss.elastic.co/t/sharing-of-pre-configured-dashboard/91052/7 "2017-06-28T11:38:26Z")

</div>

Yes, that is generated from the data inside Elasticsearch. You can see them in your Kibana if you create an index pattern like this ".kibana\*" and you can find them in the discover.

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [June 28, 2017, 11:45am UTC](https://discuss.elastic.co/t/sharing-of-pre-configured-dashboard/91052/8 "2017-06-28T11:45:45Z")

</div>

Imagine if i send this json file to you and you want to import it in your system and data is already their in your system is their any way to import it to dashboard without manually pressing import key?

---

<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:** [June 28, 2017, 11:50am UTC](https://discuss.elastic.co/t/sharing-of-pre-configured-dashboard/91052/9 "2017-06-28T11:50:12Z")

</div>

Yes, i was telling you just that. You do this:  
curl -XGET 'elasticseash:9200/.kibana/dashboard/7725c000-5bf4-11e7-ad17-ab724f5cab23?pretty'  
where "7725c000-5bf4-11e7-ad17-ab724f5cab23" is the UID of the dashboard.

The answer that you get from there you send to the new Kibana instance:  
curl -XPUT 'elasticsearch:9200/kibana/dashboard/?pretty' -H 'Content-Type: application/json' -d''

This is not an explicit supported behavior, so you need to make sure you don't overwrite another dashboard with the new dashboard document.

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [June 28, 2017, 12:02pm UTC](https://discuss.elastic.co/t/sharing-of-pre-configured-dashboard/91052/10 "2017-06-28T12:02:12Z")

</div>

Okay. But I had another query:

While writing my json file which I have to import into the dashboard through .kibana index, how to provide the correct mappings in my json file so that my dashboard gets preconfigured to receive the data that my logstash sends to elasticsearch and visualizations starts with data changing automatically.

---

<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:** [June 28, 2017, 12:45pm UTC](https://discuss.elastic.co/t/sharing-of-pre-configured-dashboard/91052/11 "2017-06-28T12:45:01Z")

</div>

You also need to port the other objects from your .kibana index, like index patterns from logstash and the visualizations.

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [June 28, 2017, 1:22pm UTC](https://discuss.elastic.co/t/sharing-of-pre-configured-dashboard/91052/12 "2017-06-28T13:22:14Z")

</div>

Hello Marius,  
Sorry to interrupt again,  
Can you please elaborate how mapping will be done with the help of some example and also where the mapping will be applied.  
Thanks & Regards  
Shrikant

---

<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:** [July 26, 2017, 1:22pm UTC](https://discuss.elastic.co/t/sharing-of-pre-configured-dashboard/91052/13 "2017-07-26T13:22:31Z")

</div>

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