Dashboards & Visualizations

Splunk JavaScript SDK: Can client-side applications work without node.js?

kylewilliamson_
New Member

I am currently working with the JavaScript SDK and want to know if client-side applications can work without node.js?

0 Karma

mohitab
Path Finder

I am also having the same issue.

My objective is to create a apache/jetty hosted business website that uses Splunk javascript SDK. I want the javascript features from SDK to work without using node.js. AFAIK, the purpose of node.js is to provide a /proxy service (endpoint) for the javascript calls to Splunk server. We need a /proxy kind of service to be running on our business webserver because Cross-origin resource sharing (http://en.wikipedia.org/wiki/Cross-origin_resource_sharing) is not allowed, or in simple words, a browser on which our business website is open, cannot make a direct call to splunk server on its own.

I am also looking for a way where I can avoid using node.js server or creating a /proxy service on my apache/jetty server. I am sure that splunk would not release an SDK with the constraint of using node.js as the only server. I have posted my question on : http://answers.splunk.com/answers/189901/by-pass-proxy-service-for-javascript-sdk.html. I would appreciate if someone can put morel light on this architectural issue.

0 Karma

ChrisG
Splunk Employee
Splunk Employee

I am not an SDK expert, but the prerequisites information and this topic in the SDK docs suggest that Node.js is included for server-side scripting and to run the client examples. "You can also use this simple server for development. But for production, you could use a proxy on your web server to forward requests to Splunk."

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...