A plugin for the nodejs logger winston to send data to Splunk
JavaScript
Switch branches/tags
Nothing to show
Latest commit 093c48f Jun 8, 2016 @erichelgeson Unmaintained
Permalink
Failed to load latest commit information.
lib Initial code commit. It works! Sep 13, 2012
test
.gitignore Initial commit Sep 13, 2012
.npmignore Initial code commit. It works! Sep 13, 2012
.travis.yml Initial code commit. It works! Sep 13, 2012
LICENSE License - Closes #3 Jun 8, 2016
README.md Unmaintained Jun 8, 2016
grunt.js
package.json

README.md

winston-splunk

A splunk transport for winston. Inspired by winston-greylog2.

This project is no longer maintained. Feel free to fork.

Installation

Tested on node-0.6.x and 0.8.x, requires npm & winston.

  $ 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)