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
Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...