Dashboards & Visualizations

Help with javascript SDK

ChhayaV
Communicator

Hi,

I have installed Java-script SDK on my windows splunk 5.0.4 and node.js
But i am not understanding how to run the Java-script codes
can anyone guide me.

i read installation guide given on http://dev.splunk.com/view/SP-CAAAEC9
but not understanding what to copy where totally confused

this is my splunk installation directory
C:\Program Files\Splunk

Path of SDK
D:\Splunk\splunk-sdk-javascript-1.2.1

where i should paste D:\Splunk\splunk-sdk-javascript-1.2.1\client files?

Do i need to paste the SDK also in splunk installation directory?

I want to integrate D3 charts for that will i be needing only client side/ server side scripting or both?

Thanks

Thanks

0 Karma

Drainy
Champion

Have you read this one, http://dev.splunk.com/view/SP-CAAAEFN ? It fully explains what files to move where. When it says your site that's really down to you, the important part is pointing it in the right direction.

ChhayaV
Communicator

hi
thanks . i have updated my question can you answer my doubts related to SDK ?

0 Karma

Drainy
Champion

your website 🙂 So if you want to create client-side javascript to connect to your node.js server side stuff to run searches and view visualisations etc. The client-side stuff must be somewhere for users to load and view within a browser

julianj
Explorer

Thank you very much for the clear explanation. I am trying to do the same thing as ChhayaV with the D3 installation, so if you could kind of explain What is the kind of stuff that will be going on the node.js server side? What is it doing? I understand it will be making the API calls to Splunk? From there it will receive xml/json outputs, and we need to use the client-side to grab that output? If this is the case, are we doing this to separate business logic in gathering Splunk Data? (in which the business logic lies solely on the node js side)

0 Karma

ChhayaV
Communicator

hi
i may sound stupid but actually when it says "your site" i don't understand what it means. can you please elaborate?

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 ...