Dashboards & Visualizations

How do I get a set of dashboard visualizations potentially via the Splunk API?

danielbb
Motivator

We have case of a customer that developed a dashboard within Splunk that has 10 panels (visualizations), and he uses the dashboard from outside Splunk with a Java program that does web scraping, and then he produces the appropriate real-time reports in the code.

Now, due to authentication issues, we would like to convert this to be done via the REST API. Do we have any other options? Like embed or anything else.

Labels (1)
Tags (1)
0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @danielbb 

The Splunk dashboards are rendered with ReactJS so I'm not sure if you'd have much success getting this to work with Java - The framework can be found at https://splunkui.splunk.com/Packages/visualizations/ if you're interested in looking into it. One thing you might be able to do is publish your dashboard however this relies on scheduling the search so its not very realtime. Another option would be to use dashpub which has a little more control - You would need to render these within a web view component within your Java app.  

Otherwise, like @richgalloway mentioned - you could use the REST API but this would only return the results - not the visuals.

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The REST API lets you run searches and retrieve the results, but cannot render visualizations.  That's normally done by the web browser so if you're not using that then Splunk visualizations are not possible.  The customer would have to use the data fetched by the API in another tool to create charts.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...