I'm using the splunk-logging library found here to setup event collection from a web app. I have followed the Basic Example in the repo's README and also from the how to page The error I'm seeing is ERROR: TypeError: Failed to fetch CONTEXT from line 32 in splunklogger.js. The code that sets up the logger looks like the following. const config = { token: splunkToken, url: splunkUrl }; const SplunkLogger = require('splunk-logging').Logger; const logger = new SplunkLogger(config); const payload = { message: 'hello world', metadata: { index: 'hms' sourcetype: 'ui' } }; logger.send(payload, (error, resp, body) => { console.log(error); }); As I'm writing this out I'm wondering if the error I'm getting is because I'm using the logger from the browser, so there is a cross origin issue. Is this the issue or is there an issue in the code?
... View more