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.
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:
Your feedback encourages the volunteers in this community to continue contributing
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.