1.0.0 • Published 10 years ago

splunk-storm v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

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!