Dashboards & Visualizations

Is there a way to export a library of widgets/panels or auto generate dashboards?

__
New Member

I have a bunch of panels for distinctive purposes. (say about 100-200).
In my use case scenario:
I would like to be able to share these panels with other users so they can create their own dashboards.

OR

Is there a way to generate dashboards using some Splunk Sdk or some service as a code? Like if I want a dashboard to contain 10 panels, can i just use the panel source codes and combine them into a dashboard in a way thats reliable and wont cause issues on dashboard imports?

Would be happy to clarify more if needed.

Thanks.

Labels (4)
Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

When you create or modify a dashboard, click the Add Panel button and a sidebar will appear on the right.  Selections in the sidebar include "Clone from dashboard" and "Add Prebuilt Panel".  The former allows the user to copy a panel from an existing dashboard.  The latter lets the user select from a list of existing panels independent of dashboards.

To create a panel, go to Settings->User Interfaces and click on Prebuilt Panels.

---
If this reply helps you, Karma would be appreciated.
0 Karma

__
New Member

Thanks for the reply.
What i wanted to know was what would be the best way to share a library of pre-built panels?

Also is there a way to generate dashboards from code? 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

As I mentioned before, go to Settings->User interface->Prebuilt Panels to access the library of pre-built panels in your environment.  There are none that come with Splunk so everything there is what was created by users on your system.  Each panel can be shared the same as any other Splunk knowledge object (private, app, or global).

Dashboards are written in Simple XML.  It's common for those who build a lot of dashboards to do so in their editor of choice and then transfer the code to Splunk.  You might even be able to create a dashboard generator on your own using building blocks common to your dashboards, but Splunk does not provide such a feature.

---
If this reply helps you, Karma would be appreciated.
0 Karma

__
New Member

Thanks. That helped clarify things.

Just wanted to check if there was a Splunk recommended or supported way of reliably generating panels from XML or JSON.

Also is there an interchangeable way of converting an XML panel to JSON? (without doing it from the browser)
Im mainly interested in the all the things we can achieve by code to scale up processes.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The Splunk UI offers a way to clone Simple XML dashboards into JSON dashboards, but that's a one-way process.  Also, so far, JSON does not support all features currently available in Simple XML.  I don't know if there's an API for the conversion.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...