Splunk Emit
JavaScript library to emit JSON "events" to splunk via a HEC
Includes native (win|mac|linux) cli
Support
- Node
Setup
npm install splunk-emit
ES5 Example
const splunk_emit = ; const emitter = debug : true splunk_url : "{{target-SPLUNK_URL}}" //OR set environment var SPLUNK_URL splunk_hec : "{{target-SPLUNK_HEC}}" //OR set environment var SPLUNK_HEC; let eventBatch = debug : true ;eventBatch; //1 sec flush eventBatch; emitter;