node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

splunk-storm

Fork of the abondoned splunkstorm project.

Splunk-Storm Build Status

NPM

NPM

Installation

$ npm i splunk-storm --save

Usage

In order for the examples to work, you'll need a SplunkStorm account. If you don't already have one, you can get one from http://www.splunkstorm.com

From your freshly set up account you'll need the SplunkStorm credentials the consist of your access token, your project Id and a API Hostname:

var SplunkStorm = require('splunk-storm');
 
var logger = new SplunkStorm({
    apiKey: 'you-api-key',
    projectId: 'project-id',
    apiHostName: 'api-host-name'
});
 
logger.send('foo=bar', null, null, null, function(error) {
    //error is null if everything went well 
});
 

Happy logging!