Dashboards & Visualizations

Javascript sdk capabilities

newatsplunk
Explorer

I was recently introduced to splunk, and am currently trying to work on a prototype to see if we have the need for this product. I have taken a look at the documentation and it's a bit confusing to me.

Is it possible to export/integrate the charts that are generated in the Splunk web portal within an external site? Can I basically create a real time external dashboard using the splunk js sdk?

Any help would be appreciated.

aelliott
Motivator

Here is some documentation on the subject:
http://dev.splunk.com/view/javascript-sdk/SP-CAAAECM

0 Karma

newatsplunk
Explorer

I have the timeline UI working but still having troubles getting the Chart UI to work. I'm still getting the error as mentioned in the comments (Cannot read property 'Chart' of undefined - line 14 from the UI demos)

0 Karma

newatsplunk
Explorer

I'm using Chrome v31.0, also looking at the api reference for the js sdk, theres no mention about the ui functionality at all. Would you happen to know any external resources that might be helpful with this? All the links I'm finding are within splunk itself which I guess is a good thing, but not really what I'm looking for

0 Karma

aelliott
Motivator

What version of browser are you using?.. I would agree on the documentation.

0 Karma

newatsplunk
Explorer

yes, the js files are being included on load time. I ran the timeline example and there were no errors but the timeline didn't show up either? The documentation for the js UI SDK is lacking quite a bit imo

0 Karma

aelliott
Motivator

did you verify your path to the splunk.ui.charting.js was correct and that it is including it on load time?

The javascript files should be within the sdk : http://dev.splunk.com/goto/sdk-javascript

0 Karma

newatsplunk
Explorer

Hi, thanks for the response, I have read through that documentation, I am currently looking at http://demos.splunk.com:6969/examples/browser/ui/index.html for the UI examples. I am running the code for the chart and get an error saying "Cannot read property 'Chart' of undefined" (line 14), any help on that? thanks again.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Your Feedback. Our Roadmap. Visit the PX Feedback Booth at .conf26

You use Splunk every day, come and help shape what's next.  Save Your Seat: Product-Focused Sessions at ...

Agentic SOC Triage: Investigating Splunk ES Notables with MCP Server and a Local LLM

The Problem: Too Many Alerts, Too Little Context Security operations teams running Splunk Enterprise Security ...

Painting a Clearer Picture: Creating Cross-Domain Visibility with AI Canvas

Watch Now Painting a Clearer Picture: Creating Cross-Domain Visibility with AI Canvas     Do you ever feel ...