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

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...