Dashboards & Visualizations

Javascript SDK client-side only

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


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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...