# Can I copy a dashboard and its associated visulizations?

**URL:** <https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311>\
**Category:** Kibana\
**Created:** [July 24, 2017, 10:45am UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311 "2017-07-24T10:45:28Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)\
**Post date:** [July 24, 2017, 10:45am UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/1 "2017-07-24T10:45:29Z")

</div>

ELK Version: 5.4.1

There some similar projects, and they could use same dashboard.

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [July 24, 2017, 6:07pm UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/2 "2017-07-24T18:07:34Z")

</div>

You mean you want to duplicate existing dashboards/visualizations, or you want to export them from one Kibana instance and import them into another.

If the later, there's an export function in Management \> Saved Objects.

---

<div class="post-metadata">

**Author:** ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)\
**Post date:** [July 25, 2017, 2:12am UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/3 "2017-07-25T02:12:15Z")

</div>

The first...I want to duplicate existing dashboards.

---

<div class="post-metadata">

**Author:** ![varundbest](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/varundbest/32/48066_2.png) [@varundbest](https://discuss.elastic.co/u/varundbest)\
**Post date:** [July 25, 2017, 8:24am UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/4 "2017-07-25T08:24:55Z")

</div>

This is a feature ('Clone') in their Premium X-Pack but not in standard Kibana as of now.

---

<div class="post-metadata">

**Author:** ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)\
**Post date:** [July 25, 2017, 8:27am UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/5 "2017-07-25T08:27:14Z")

</div>

I have installed xpack, how to use this feature, but I didn't find the buttons... is there a guide?

---

<div class="post-metadata">

**Author:** ![varundbest](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/varundbest/32/48066_2.png) [@varundbest](https://discuss.elastic.co/u/varundbest)\
**Post date:** [July 25, 2017, 8:51am UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/6 "2017-07-25T08:51:19Z")

</div>

There should be a clone button right in the middle of Share and Edit, on the top-right corner of every dashboard.

---

<div class="post-metadata">

**Author:** ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)\
**Post date:** [July 25, 2017, 9:06am UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/7 "2017-07-25T09:06:36Z")

</div>

I have no this button, maybe I should use Enterprise version? my xpack is trial now...

---

<div class="post-metadata">

**Author:** ![varundbest](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/varundbest/32/48066_2.png) [@varundbest](https://discuss.elastic.co/u/varundbest)\
**Post date:** [July 25, 2017, 9:46am UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/8 "2017-07-25T09:46:04Z")

</div>

Maybe it a new feature in 5.5.0, you should try that.

---

<div class="post-metadata">

**Author:** ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)\
**Post date:** [July 25, 2017, 9:47am UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/9 "2017-07-25T09:47:50Z")

</div>

OK, thanks a lot, I will have a try.

---

<div class="post-metadata">

**Author:** ![Helix](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/helix/32/19987_2.png) [@Helix](https://discuss.elastic.co/u/Helix)\
**Post date:** [July 25, 2017, 9:50am UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/10 "2017-07-25T09:50:14Z")

</div>

I am not sure if that's what you mean, but when I need to duplicate an existing dashboard, I open it, go to Edit -\> Save -\> Save as new dashboard and enter a new name for the second dashboard. Afterwards, you should see both of them in the menu.

---

<div class="post-metadata">

**Author:** ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)\
**Post date:** [July 25, 2017, 10:14am UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/11 "2017-07-25T10:14:38Z")

</div>

This what I am doing now, but the visualizations are the same, also I need to copy the associated visualizations.

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [July 25, 2017, 3:59pm UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/12 "2017-07-25T15:59:13Z")

</div>

> This is a feature ('Clone') in their Premium X-Pack but not in standard Kibana as of now.

That's not true. The clone operations is part of Kibana. It's just new, and does the same thing as the "Save as new dashboard".

As Helix pointed out, you can "Save as new dashboard", and that will create a copy of the dashboard, but as you note, it will not create a copy of the underlying visualizations. You'd have to also make copies of all of those, and use those cloned visualizations on your cloned dashboard.

You can do this through the UI, but it's a lot of work. Since everything is just a document in Elasticsearch, it would be much easier to script this.

- Read the dashboard (a GET operation by ID)
- Read the visualizations on it (an MGET here)
- Make a new copy of the visualizations, setting a new ID (the ID can be anything, Kibana just uses a UUID by default, you can do the same)
- Make a new copy of the dashboard as above, and also change the IDs of the visualizations in it to the copies you just created

This could also be built into a plugin in Kibana if you wanted to do it that way. That would allow you to keep a single interface for managing this stuff, instead of copying a dashboard ID into an external script. You could even create a new control at the top of dashboards that would do all of this right from there.

Since it was pointed out that the Clone operation already exists in Kibana, I think it's reasonable to make a feature request there that would clone the visualizations automatically too. The operation is the same whether Kibana does it or you write your own script to do it.

---

<div class="post-metadata">

**Author:** ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)\
**Post date:** [July 25, 2017, 6:19pm UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/13 "2017-07-25T18:19:00Z")

</div>

> [@Joe\_Fleming](#):
>
> Since it was pointed out that the Clone operation already exists in Kibana, I think it's reasonable to make a feature request there that would clone the visualizations automatically too.

Hi Joe, thanks a lot for your explanation, hope you release this new feature in next version.

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [July 25, 2017, 7:10pm UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/14 "2017-07-25T19:10:47Z")

</div>

I probably wasn't clear enough. I'm saying you should [open an issue in the Kibana repo](https://github.com/elastic/kibana/issues) to add that functionality. That way someone on the team, or even someone from the community, will see the request and actually make it happen. I'd open it myself, but features are more meaningful when they come from our users.

---

<div class="post-metadata">

**Author:** ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)\
**Post date:** [July 26, 2017, 5:36am UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/15 "2017-07-26T05:36:59Z")

</div>

OK, I will open a issue about this in github.😄

---

<div class="post-metadata">

**Author:** ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)\
**Post date:** [July 27, 2017, 7:00am UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/16 "2017-07-27T07:00:03Z")

</div>

Upgrade kibana to 5.5.1 and I found the `Clone` button, thanks a lot for your advice!

I have a try to clone a dashboard, and it seems that the visualizations are just links to the original dashboard, if I modify the visualizations, the original dashboard will be changed too.

---

<div class="post-metadata">

**Author:** ![varundbest](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/varundbest/32/48066_2.png) [@varundbest](https://discuss.elastic.co/u/varundbest)\
**Post date:** [July 27, 2017, 8:53am UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/17 "2017-07-27T08:53:12Z")

</div>

A quick method would be to :-

1. Export the visualizations from management -\> Saved Objects,
2. Edit their IDs (\_id) in the JSON obtained and then import those visualizations.
3. Same way, export the dashboard and match the new IDs in "panelsJSON", (You can just append '-clone' at the end of every \_id in visualizations and dashboards) and that should work like a charm upon importing.

This way you have just cloned all your visualizations and the dashboard.

See, Kibana stores all it's data in Elasticsearch under '.kibana' index. The Visualizations are under 'visualization' type and then we have :- dashboard, url, index-pattern, etc. And these Objects can reference each other, like Dashboards will be referencing the IDs of their visualizations and visualizations will be referencing their searches, etc. So if you clone a dashboard, only dashboard Object is cloned as it is, it's references remains the same.

---

<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:** [August 24, 2017, 8:53am UTC](https://discuss.elastic.co/t/can-i-copy-a-dashboard-and-its-associated-visulizations/94311/18 "2017-08-24T08:53:32Z")

</div>

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