Ok, I solved this too ... but not shure if in most elegant way... ...ole! new error found 🙂 ... if you dont mind, could you be so kind to tell me exactly step by step what should I do to get this 'monster' work?
... View more
OK, i solved this one, script splunk.js is on the page and no error is shown. I solved by adding src in url... https://mycomp:8000/... (instead of C:/...).
But the joy was only for a short time... next error: Uncaught ReferenceError: splunkjs is not defined ....
is out there any detailed walkthrough of using Splunk SDK javascript?
... View more
I try under web server.
If I add in xml, nothing happen. If I try with editing application.js I get error "Not allowed to load local resource". I am guessing that maybe I didn't put "client" folder of splunk sdk in right directory (I put it in static directory of an app).</p>
... View more
Sorry I have no answer for you..but one question... I am doing the same thing but stacked in firs step... how do you attach splunk.js file (script) to application.js or site.. I tried quite everything but without success... I tried with in xml but nothing... I tried with
var head= document.getElementsByTagName('head')[0];
var script= document.createElement('script');
script.type= 'text/javascript';
script.src= 'C:/Program files/splunk/etc/apps/HCtest/appserver/static/splunk-sdk/client /splunk.min.js';
head.appendChild(script);
...in application.js
...and got script on page but also error "Not allowed to load local resource:"
thanks for advice.
... View more