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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...