Dashboards & Visualizations
Highlighted

Help with javascript SDK

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
Highlighted

Re: Help with javascript SDK

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.

Highlighted

Re: Help with javascript SDK

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
Highlighted

Re: Help with javascript SDK

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

Highlighted

Re: Help with javascript SDK

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
Highlighted

Re: Help with javascript SDK

Communicator

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

0 Karma