This package has been deprecated

Author message:

splunkstorm is no longer a thing

winston-splnkstrm

2.0.2 • Public • Published

winston-splnkstrm 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-splnkstrm

Example Usage

var winston = require('winston');
var Splnkstrm = require('winston-splnkstrm');
 
winston.add(Splnkstrm, {
    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 SplnkStrm 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 splunk-storm the client for the splunkstorm api.

Happy Logging!

Package Sidebar

Install

npm i winston-splnkstrm

Weekly Downloads

0

Version

2.0.2

License

MIT

Last publish

Collaborators

  • zaphod1984