Dashboards & Visualizations

Javascript SDK client-side only

jtahirkh
New Member

I have a web application that uses Angular.js along with HTML5 and CSS3 on the frontend and Java on the backend. I'm hoping to use the javascript SDK to show charts and graphs on the frontend. I've looked at the examples provided in the SDK download but all of those seem to use node.js as a backend. I have two questions:

  1. Is node.js required as a backend to use the client-side javascript SDK?
  2. Is this the correct route to take? Or should I be looking into the Java SDK to pull from splunk and then send data to the frontend RESTfully?

Thanks, and please let me know if more information is needed!
- Jamie

0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

Angular is special. Nodejs is not required, you can use npm to download the splunkjs stack. Then you include those libraries as you would any other library. The examples use nodejs because most people won't have something else running to serve the javascript pages. This discussion can go waaay deeper than "include the files and execute", so feel free to email me specific code-related questions. I am also on the IRC (#splunk on efnet). I don't want to pollute the forum here until a viable solution can be determined. I've worked with Angular before, and am pretty good at javascript stuffs.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...