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!

Mission Control | Explore the latest release of Splunk Mission Control (2.3)

We’re happy to announce the release of Mission Control 2.3 which includes several new and exciting features ...

Cloud Platform | Migrating your Splunk Cloud deployment to Python 3.7

Python 2.7, the last release of Python 2, reached End of Life back on January 1, 2020. As part of our larger ...

Splunk Observability Cloud | Enhancing Your Onboarding Experience with the ...

We understand that your initial experience with getting data into Splunk Observability Cloud is crucial as it ...