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!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...