How to Copy Kibana Dashboard to Another Kibana Space

|
Last Updated:
|
|

Is it possible to copy Kibana dashboard to another Kibana Space? Yes, definitely. In this tutorial, you will learn how to copy Kibana dashboard to another space. Kibana spaces enable you to organize your dashboards and other saved objects into categories based on team, use case, individual, or really any way you choose. This feature also comes in handy when you want to restrict access to specific dashboards or saved objects to specific users who have access to specific Kibana space.

Kibana ships a default space.

Copying Kibana Dashboard to Another Kibana Space

When you create visualizations in Kibana, you can add them into dashboards. There may arise a situation whereby you want to share a Kibana dashboard that has already been created on another Kibana space to other users that are accessing a different space on Kibana.

Note that Kibana dashboard, visualizations, index patterns e.t.c are stored as saved objects. Thus, in order to copy Kibana dashboards to another Kibana space, the Kibana Saved Objects UI allows you to export and import the saved dashboard objects.

Create Kibana Space to Copy Dashboard to

By default Kibana ships with a Default dashboard that is accessible to any one.

kibana default spaces

If you have not already created your custom space where you want to copy specific dashboards to, then create one as follows.

  • Under Kibana menu, navigate to Management > Stack Management > Kibana > Spaces.
  • Or simply, click the space Icon > Manage spaces;
access spaces easily on kibana
  • Under Spaces page, click Create Space;
    • provide a name, URL identifier, optional description.
    • customize your space
    • select the feature you want to show in the custom space.
How to Copy Kibana Dashboard to Another Kibana Space
  • create the space by clicking Create space.

Identify Kibana Dashboard to Copy

You first need to identify which Kibana dashboard on which Kibana space you want to copy or copy to the other space.

In this example, we will use the default SSH login attempts dashboard that is available in the default Kibana space;

How to Copy Kibana Dashboard to Another Kibana Space

This is how this dashboard looks like;

How to Copy Kibana Dashboard to Another Kibana Space

At this point, there are two options;

  • copy Kibana dashboard from one space to another on the same environment
  • Copy Kibana dashboard from one environment to another environment

Copying Kibana Dashboard from one space to another on the same environment

To be able to copy Kibana dashboard to another Kibana Space within the same environment;

  • navigate to Kibana menu > Management > Stack Management > Kibana > Saved Objects
  • search for your identified dashboard to copy from the list.
  • select the respective dashboard from the list
  • Under actions, click the three dots and click copy to space.
copy dashboard to space
  • Choose the appropriate copy settings for your dashboard.
  • Click copy to copy the dashboard.
copy settings
  • Check the copy statistics and click Finish.

Access your dashboards in the new space now!

Copy Kibana Dashboard from one environment to another environment

Download/Export Kibana Dashboard Objects

You need to download or export an NDJSON file containing all your saved dashboard objects.

Ensure that there is same index used for creating dashboard index pattern on the second environment.

Thus;

  • On the current environment, navigate to Kibana menu > Management > Stack Management > Kibana > Saved Objects
  • search for your identified dashboard to copy from the list.
  • select the respective dashboard from the list
export download kibana dashboard
  • click Export option, and ensure that include related objects is enabled, to download an NDJSON file for your dashboard to your system.

Import Kibana Dashboard to Another Kibana Space on the other environment

Well, basically, the next step will copy the kibana dashboard into another space. If you want to Copy, then after importing the dashboard into the new space, delete it on the source, ONLY if you have confirmed that the dashboard works as expected.

So;

  • Login into Kibana as a privileged user or a user that has access to the new space and switch to the space. As you can see in this photo, i am logged into my custom space;
custom space kibana
  • next, login to the other environment Kibana, choose the space and
  • navigate to Kibana menu > Management > Stack Management > Kibana > Saved Objects
  • Click Import option at the top right
  • Select a file to import by navigating to where you had saved the NDJSON file
  • Choose the import options, I prefer, Create new objects with random IDs.
import ndjson kibana
  • click import. all objects in the dashboard will be imported.
dashboard objects imported
  • Click Done.

All the imported objects will now be listed under Saved Objects.

imported kibana dashboards

Accessing Imported Dashboards

You should now be able to access your dashboards on the new space as you would on the original space.

imported dashboards

Open the dashboard.

As much as you can see other dashboards such as Syslog, sudo and New users/groups dashboard, you wont be able to view them since we didn’t import.

Note that we only imported one single dashboard, SSH logins. Which works fine.

copied or imported dashboard

You can now assign proper access roles to your custom dashboard!

Other Tutorials

Delete Specific Records from Elasticsearch Index

Setup Multinode Elasticsearch 8.x Cluster

SUPPORT US VIA A VIRTUAL CUP OF COFFEE

We're passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!

Photo of author
koromicha
I am the Co-founder of Kifarunix.com, Linux and the whole FOSS enthusiast, Linux System Admin and a Blue Teamer who loves to share technological tips and hacks with others as a way of sharing knowledge as: "In vain have you acquired knowledge if you have not imparted it to others".

Leave a Comment