gelf-stream
A node.js stream to send JS objects to a Graylog2 server (in GELF format).
Also provides a stream that can be used directly in Bunyan and provides a number of sane mappings.
Example
var split = bunyan = gelfStream = // gelf-stream comes with Bunyan support var stream = gelfStream var log = bunyan log // will be sent to the Graylog2 server on localhost log // will extract file/line numbers too stream // Bunyan doesn't currently end the stream when the program has finished // Or you can use it to stream any sort of object/string processstdin // split into lines processstdin
API
gelfStream.create([host], [port], [options])
gelfStream.forBunyan([host], [port], [options])
Installation
With npm do:
npm install gelf-stream