How to enable SSL certificate validation using Splunk logging for JavaScript

SSL certificate validation is disabled by default. To enable it, set requestOptions.strictSSL = true on your SplunkLogger instance, as shown here, substituting your auth token and Splunk server instance as indicated:

var SplunkLogger = require("splunk-logging").Logger;
var config =
{ token: "<your-token-here>", url: "https://splunk.local:8088" }
var Logger = new SplunkLogger(config);

// Enable SSL certificate validation
Logger.requestOptions.strictSSL = true;