Installation

How to resolve this error: splunkjs.ProxyHttp is not a constructor?

kalok9990
New Member

Hi, I am trying to use splunk sdk javascript and I have searched online for this but came up with no answers. I have followed the tutorial in splunk for setting up the sdk and trying to log in with 

var service = new splunkjs.Service

 however this gives me the error of a web instance is required.

I found a solution to this is to add

var http = new splunkjs.ProxyHttp("/proxy")

 but this gives me the error

splunkjs.ProxyHttp is not a constructor

why is this happening?

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...