A graylog2 transport for winston

npm install winston-graylog2
6 downloads in the last day
318 downloads in the last week
1 299 downloads in the last month

winston-graylog2 Build Status

A graylog2 transport for winston. Inspired by winston-mail transport and node-graylog3.


Tested on node-0.6.x, requires npm.

  $ npm install winston
  $ npm install winston-graylog2


  var winston = require('winston');
  winston.add(require('./winston-graylog2.js').Graylog2, options);

Options are the following:

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

  • graylogHost: IP address or hostname of the graylog2 server. (default: localhost)

  • graylogPort: Port to send messages to on the graylog2 server. (default: 12201)
  • graylogHostname: The hostname associated with graylog2 messages. (default: require('os').hostname())
  • graylogFacility: The graylog2 facility to send log messages.. (default: nodejs)
npm loves you