Piotr Perak
Piotr Perak

Reputation: 11088

How can I clone dashboard and visualizations?

While working on new version of dashboards I need to leave previous versions unchanged. So I need to clone existing dashboard and save it as original name with some postfix - for example v.2.

I know there is possibility to clone dashboard in Kibana but it clones dashboard only. Meaning there will be two dashboard that will share same visualizations.

Is there an automatic way to clone visualizations too and make new cloned dashboard use those cloned visualizations?

Upvotes: 4

Views: 10123

Answers (2)

Mak
Mak

Reputation: 1078

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

In a simple statement.

To copy visualization

  1. Export a visualization

  2. Opened the export file, Removed the id (it will get auto generated) and changed the name

  3. Save the file and import it

Upvotes: 2

Michele Piccolini
Michele Piccolini

Reputation: 2953

Just select "Save as a new visualization" when you save a visualization, and you will have your copy.

Upvotes: 15

Related Questions