winston-splunk

A Splunk transport for winston

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
winston-splunk
1710.1.012 years ago12 years agoMinified + gzip package size for winston-splunk in KB

Readme

winston-splunk
A splunk2 transport for winston0. Inspired by winston-greylog21.

Installation

Tested on node-0.6.x, requires npm.
$ # Currently not in npm use git for now.
$ npm install winston
$ npm install winston-splunk

Usage

var winston = require('winston');
winston.add(require('winston-splunk').splunk, options);

Splunk props.conf

Example props.conf
[udp:54321]
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=false
TIME_PREFIX={"_timestamp":

Options are the following:
  • level: Level of messages this transport should log. (default: info)
  • silent: Boolean flag indicating whether to suppress output. (default: false)

  • splunkHost: IP address or hostname of the Splunk server. (default: localhost)
  • splunkPort: Port to send messages to on the Splunk server. (default: 54321)
  • splunkHostname: The hostname associated with Splunk messages. (default: require('os').hostname())
  • splunkFacility: The Splunk facility to send log messages.. (default: nodejs)