Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Winston transport for splunkstorm
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
tests
.gitignore
.npmignore
.travis.yml
LICENSE.md
README.md
index.js
package.json

README.md

winston-splunkstorm Build Status

NPM

NPM

In their Logging Best Practises Splunk strongly encourages the usage of key-value pairs in logs. This winston plugin takes messages and meta data hashes and creates a key-value structured string out of it.

Installation

npm install winston-splunkstorm

Example Usage

var winston = require('winston');
var splunkstorm = require('winston-splunkstorm');

winston.add(splunkstorm, {
    apiKey: 'api-key',
    projectId: 'project-id',
    apiHostName: 'api-host-name'
});

winston.info({a: 'b'});

//output: 2013-12-09T07:10:49.522Z a=b, lvl=info, hst=fooHost

Parameters for the splunkstorm constructor:

  • apiKey your apiKey at splunkstorm.com (mandatory)
  • projectId your projectId at splunkstorm.com (mandatory)
  • apiHostName the hostname assigned to your project by splunkStorm

Find more Details here.

Built with splunkstorm the client for the splunkstorm api.

Happy Logging!

Something went wrong with that request. Please try again.