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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...