{"_id":"gelf-stream","_rev":"4085793","name":"gelf-stream","description":"A stream to send JS objects to a Graylog2 server (in GELF format)","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"hichaelmart","email":"michael.hart.au@gmail.com"}],"time":{"modified":"2025-12-02T22:11:05.000Z","created":"2013-01-17T04:13:46.457Z","1.1.1":"2016-05-07T15:57:55.890Z","1.1.0":"2016-01-13T20:32:41.791Z","1.0.3":"2015-06-11T14:40:04.992Z","1.0.2":"2015-06-11T14:37:54.329Z","1.0.1":"2015-03-12T21:28:31.263Z","1.0.0":"2015-02-16T03:42:51.589Z","0.2.4":"2014-05-22T05:59:34.055Z","0.2.3":"2014-05-09T10:37:39.355Z","0.2.2":"2013-01-19T06:46:41.665Z","0.2.1":"2013-01-17T23:09:14.572Z","0.2.0":"2013-01-17T04:44:49.682Z","0.0.1":"2013-01-17T04:13:46.457Z"},"users":{},"author":{"name":"Michael Hart","email":"michael.hart.au@gmail.com","url":"http://github.com/mhart"},"repository":{"type":"git","url":"git+https://github.com/mhart/gelf-stream.git"},"versions":{"1.1.1":{"name":"gelf-stream","version":"1.1.1","description":"A stream to send JS objects to a Graylog2 server (in GELF format)","author":{"name":"Michael Hart","email":"michael.hart.au@gmail.com","url":"http://github.com/mhart"},"main":"gelf-stream.js","keywords":["gelf","stream","graylog","graylog2","bunyan"],"repository":{"type":"git","url":"git+https://github.com/mhart/gelf-stream.git"},"license":"MIT","dependencies":{"gelfling":"^0.3.0"},"devDependencies":{"mocha":"^2.3.4","should":"^8.1.1"},"scripts":{"test":"mocha ./test/fast.js -b -t 100s -R list"},"gitHead":"9f3a80c7b69fe1a5f93a7c9ebb610ddf3843747e","bugs":{"url":"https://github.com/mhart/gelf-stream/issues"},"homepage":"https://github.com/mhart/gelf-stream#readme","_id":"gelf-stream@1.1.1","_shasum":"9cea9b6386ac301c741838ca3cb91e66dbfbf669","_from":".","_npmVersion":"2.15.4","_nodeVersion":"4.4.3","_npmUser":{"name":"hichaelmart","email":"michael.hart.au@gmail.com"},"maintainers":[{"name":"hichaelmart","email":"michael.hart.au@gmail.com"}],"dist":{"shasum":"9cea9b6386ac301c741838ca3cb91e66dbfbf669","size":2682,"noattachment":false,"key":"/gelf-stream/-/gelf-stream-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/gelf-stream/download/gelf-stream-1.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gelf-stream-1.1.1.tgz_1462636673582_0.25564869842492044"},"directories":{},"publish_time":1462636675890,"_hasShrinkwrap":false,"_cnpm_publish_time":1462636675890,"_cnpmcore_publish_time":"2021-12-17T00:23:45.570Z"},"1.1.0":{"name":"gelf-stream","version":"1.1.0","description":"A stream to send JS objects to a Graylog2 server (in GELF format)","author":{"name":"Michael Hart","email":"michael.hart.au@gmail.com","url":"http://github.com/mhart"},"main":"gelf-stream.js","keywords":["gelf","stream","graylog","graylog2","bunyan"],"repository":{"type":"git","url":"git+https://github.com/mhart/gelf-stream.git"},"license":"MIT","dependencies":{"gelfling":"^0.3.0"},"devDependencies":{"mocha":"^2.3.4","should":"^8.1.1"},"scripts":{"test":"mocha ./test/fast.js -b -t 100s -R list"},"gitHead":"8dea6a4440768ddd25372f57671a039035b5488d","bugs":{"url":"https://github.com/mhart/gelf-stream/issues"},"homepage":"https://github.com/mhart/gelf-stream#readme","_id":"gelf-stream@1.1.0","_shasum":"c2b220573e739b0af098b79e8330843171811a32","_from":".","_npmVersion":"2.14.15","_nodeVersion":"4.2.4","_npmUser":{"name":"hichaelmart","email":"michael.hart.au@gmail.com"},"maintainers":[{"name":"hichaelmart","email":"michael.hart.au@gmail.com"}],"dist":{"shasum":"c2b220573e739b0af098b79e8330843171811a32","size":2680,"noattachment":false,"key":"/gelf-stream/-/gelf-stream-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gelf-stream/download/gelf-stream-1.1.0.tgz"},"directories":{},"publish_time":1452717161791,"_hasShrinkwrap":false,"_cnpm_publish_time":1452717161791,"_cnpmcore_publish_time":"2021-12-17T00:23:45.768Z"},"1.0.3":{"name":"gelf-stream","version":"1.0.3","description":"A stream to send JS objects to a Graylog2 server (in GELF format)","author":{"name":"Michael Hart","email":"michael.hart.au@gmail.com","url":"http://github.com/mhart"},"main":"gelf-stream.js","keywords":["gelf","stream","graylog","graylog2","bunyan"],"repository":{"type":"git","url":"git+https://github.com/mhart/gelf-stream.git"},"license":"MIT","dependencies":{"gelfling":"~0.2.0"},"devDependencies":{"mocha":"^2.2.5","should":"^6.0.3"},"scripts":{"test":"mocha ./test/fast.js -b -t 100s -R list"},"gitHead":"fc4f8d667b65faace2ba360db6e985435c454869","bugs":{"url":"https://github.com/mhart/gelf-stream/issues"},"homepage":"https://github.com/mhart/gelf-stream#readme","_id":"gelf-stream@1.0.3","_shasum":"ea5fca56b8aef4808220fe3fe4ce6642270002b8","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.12.4","_npmUser":{"name":"hichaelmart","email":"michael.hart.au@gmail.com"},"maintainers":[{"name":"hichaelmart","email":"michael.hart.au@gmail.com"}],"dist":{"shasum":"ea5fca56b8aef4808220fe3fe4ce6642270002b8","size":2674,"noattachment":false,"key":"/gelf-stream/-/gelf-stream-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/gelf-stream/download/gelf-stream-1.0.3.tgz"},"directories":{},"publish_time":1434033604992,"_hasShrinkwrap":false,"_cnpm_publish_time":1434033604992,"_cnpmcore_publish_time":"2021-12-17T00:23:46.105Z"},"1.0.2":{"name":"gelf-stream","version":"1.0.2","description":"A stream to send JS objects to a Graylog2 server (in GELF format)","author":{"name":"Michael Hart","email":"michael.hart.au@gmail.com","url":"http://github.com/mhart"},"main":"gelf-stream.js","keywords":["gelf","stream","graylog","graylog2","bunyan"],"repository":{"type":"git","url":"git+https://github.com/mhart/gelf-stream.git"},"license":"MIT","dependencies":{"gelfling":"~0.2.0"},"devDependencies":{"should":"~1.2.1","mocha":"~1.7.4"},"scripts":{"test":"mocha ./test/fast.js -b -t 100s -R list"},"gitHead":"b9b08b16da8c626f53ff38683e98cbe864ddfe16","bugs":{"url":"https://github.com/mhart/gelf-stream/issues"},"homepage":"https://github.com/mhart/gelf-stream#readme","_id":"gelf-stream@1.0.2","_shasum":"ac83d7f533b992dafb7f676910954a4db4b5789d","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.12.4","_npmUser":{"name":"hichaelmart","email":"michael.hart.au@gmail.com"},"maintainers":[{"name":"hichaelmart","email":"michael.hart.au@gmail.com"}],"dist":{"shasum":"ac83d7f533b992dafb7f676910954a4db4b5789d","size":2671,"noattachment":false,"key":"/gelf-stream/-/gelf-stream-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/gelf-stream/download/gelf-stream-1.0.2.tgz"},"directories":{},"publish_time":1434033474329,"_hasShrinkwrap":false,"_cnpm_publish_time":1434033474329,"_cnpmcore_publish_time":"2021-12-17T00:23:46.359Z"},"1.0.1":{"name":"gelf-stream","version":"1.0.1","description":"A stream to send JS objects to a Graylog2 server (in GELF format)","author":{"name":"Michael Hart","email":"michael.hart.au@gmail.com","url":"http://github.com/mhart"},"main":"gelf-stream.js","keywords":["gelf","stream","graylog","graylog2","bunyan"],"repository":{"type":"git","url":"https://github.com/mhart/gelf-stream.git"},"license":"MIT","dependencies":{"gelfling":"~0.2.0"},"devDependencies":{"should":"~1.2.1","mocha":"~1.7.4"},"scripts":{"test":"mocha ./test/fast.js -b -t 100s -R list"},"gitHead":"04a2ebebe6157e4c344106db56193141e1f21148","bugs":{"url":"https://github.com/mhart/gelf-stream/issues"},"homepage":"https://github.com/mhart/gelf-stream","_id":"gelf-stream@1.0.1","_shasum":"345f7f01bf045b2fc7a561a866cd60f10eea3f4c","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.10.36","_npmUser":{"name":"hichaelmart","email":"michael.hart.au@gmail.com"},"maintainers":[{"name":"hichaelmart","email":"michael.hart.au@gmail.com"}],"dist":{"shasum":"345f7f01bf045b2fc7a561a866cd60f10eea3f4c","size":2661,"noattachment":false,"key":"/gelf-stream/-/gelf-stream-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/gelf-stream/download/gelf-stream-1.0.1.tgz"},"publish_time":1426195711263,"_hasShrinkwrap":false,"_cnpm_publish_time":1426195711263,"_cnpmcore_publish_time":"2021-12-17T00:23:46.598Z"},"1.0.0":{"name":"gelf-stream","version":"1.0.0","description":"A stream to send JS objects to a Graylog2 server (in GELF format)","author":{"name":"Michael Hart","email":"michael.hart.au@gmail.com","url":"http://github.com/mhart"},"main":"gelf-stream.js","keywords":["gelf","stream","graylog","graylog2","bunyan"],"repository":{"type":"git","url":"https://github.com/mhart/gelf-stream.git"},"license":"MIT","dependencies":{"gelfling":"~0.2.0"},"devDependencies":{"should":"~1.2.1","mocha":"~1.7.4"},"scripts":{"test":"mocha ./test/fast.js -b -t 100s -R list"},"gitHead":"a7ace12d5232c4999ee02979b441cf6c552510aa","bugs":{"url":"https://github.com/mhart/gelf-stream/issues"},"homepage":"https://github.com/mhart/gelf-stream","_id":"gelf-stream@1.0.0","_shasum":"f8fd8572d74156f0c4157bb5e46f55f5f7fe5da8","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.36","_npmUser":{"name":"hichaelmart","email":"michael.hart.au@gmail.com"},"maintainers":[{"name":"hichaelmart","email":"michael.hart.au@gmail.com"}],"dist":{"shasum":"f8fd8572d74156f0c4157bb5e46f55f5f7fe5da8","size":2651,"noattachment":false,"key":"/gelf-stream/-/gelf-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gelf-stream/download/gelf-stream-1.0.0.tgz"},"directories":{},"publish_time":1424058171589,"_hasShrinkwrap":false,"_cnpm_publish_time":1424058171589,"_cnpmcore_publish_time":"2021-12-17T00:23:46.854Z"},"0.2.4":{"name":"gelf-stream","version":"0.2.4","description":"A stream to send JS objects to a Graylog2 server (in GELF format)","author":{"name":"Michael Hart","email":"michael.hart.au@gmail.com","url":"http://github.com/mhart"},"main":"gelf-stream.js","keywords":["gelf","stream","graylog","graylog2","bunyan"],"repository":{"type":"git","url":"https://github.com/mhart/gelf-stream.git"},"license":"MIT","dependencies":{"gelfling":"~0.2.0"},"devDependencies":{"should":"~1.2.1","mocha":"~1.7.4"},"scripts":{"test":"mocha ./test/fast.js -b -t 100s -R list"},"bugs":{"url":"https://github.com/mhart/gelf-stream/issues"},"homepage":"https://github.com/mhart/gelf-stream","_id":"gelf-stream@0.2.4","_shasum":"a418c8c2e39b85b7932a3e8523f6022d6852e013","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"hichaelmart","email":"michael.hart.au@gmail.com"},"maintainers":[{"name":"hichaelmart","email":"michael.hart.au@gmail.com"}],"dist":{"shasum":"a418c8c2e39b85b7932a3e8523f6022d6852e013","size":2570,"noattachment":false,"key":"/gelf-stream/-/gelf-stream-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/gelf-stream/download/gelf-stream-0.2.4.tgz"},"directories":{},"publish_time":1400738374055,"_hasShrinkwrap":false,"_cnpm_publish_time":1400738374055,"_cnpmcore_publish_time":"2021-12-17T00:23:47.088Z"},"0.2.3":{"name":"gelf-stream","version":"0.2.3","description":"A stream to send JS objects to a Graylog2 server (in GELF format)","author":{"name":"Michael Hart","email":"michael.hart.au@gmail.com","url":"http://github.com/mhart"},"main":"gelf-stream.js","keywords":["gelf","stream","graylog","graylog2","bunyan"],"repository":{"type":"git","url":"https://github.com/mhart/gelf-stream.git"},"license":"MIT","dependencies":{"gelfling":"~0.2.0"},"devDependencies":{"should":"~1.2.1","mocha":"~1.7.4"},"scripts":{"test":"mocha ./test/fast.js -b -t 100s -R list"},"bugs":{"url":"https://github.com/mhart/gelf-stream/issues"},"homepage":"https://github.com/mhart/gelf-stream","_id":"gelf-stream@0.2.3","_shasum":"a627f4f9264a75f67d8241562c9d16c418a56f9b","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"hichaelmart","email":"michael.hart.au@gmail.com"},"maintainers":[{"name":"hichaelmart","email":"michael.hart.au@gmail.com"}],"dist":{"shasum":"a627f4f9264a75f67d8241562c9d16c418a56f9b","size":2554,"noattachment":false,"key":"/gelf-stream/-/gelf-stream-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/gelf-stream/download/gelf-stream-0.2.3.tgz"},"directories":{},"publish_time":1399631859355,"_hasShrinkwrap":false,"_cnpm_publish_time":1399631859355,"_cnpmcore_publish_time":"2021-12-17T00:23:47.285Z"},"0.2.2":{"name":"gelf-stream","version":"0.2.2","description":"A stream to send JS objects to a Graylog2 server (in GELF format)","author":{"name":"Michael Hart","email":"michael.hart.au@gmail.com","url":"http://github.com/mhart"},"main":"gelf-stream.js","keywords":["gelf","stream","graylog","graylog2","bunyan"],"repository":{"type":"git","url":"https://github.com/mhart/gelf-stream.git"},"license":"MIT","dependencies":{"gelfling":"~0.2.0"},"devDependencies":{"should":"~1.2.1","mocha":"~1.7.4"},"scripts":{"test":"mocha ./test/fast.js -b -t 100s -R list"},"readmeFilename":"README.md","_id":"gelf-stream@0.2.2","dist":{"shasum":"dde4b05c1b0a47d1b626365b1f2c20ab75f1a7f4","size":2544,"noattachment":false,"key":"/gelf-stream/-/gelf-stream-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/gelf-stream/download/gelf-stream-0.2.2.tgz"},"_npmVersion":"1.2.0","_npmUser":{"name":"hichaelmart","email":"michael.hart.au@gmail.com"},"maintainers":[{"name":"hichaelmart","email":"michael.hart.au@gmail.com"}],"directories":{},"publish_time":1358578001665,"_hasShrinkwrap":false,"_cnpm_publish_time":1358578001665,"_cnpmcore_publish_time":"2021-12-17T00:23:47.674Z"},"0.2.1":{"name":"gelf-stream","version":"0.2.1","description":"A stream to send JS objects to a Graylog2 server (in GELF format)","author":{"name":"Michael Hart","email":"michael.hart.au@gmail.com","url":"http://github.com/mhart"},"main":"gelf-stream.js","keywords":["gelf","stream","graylog","graylog2","bunyan"],"repository":{"type":"git","url":"https://github.com/mhart/gelf-stream.git"},"license":"MIT","dependencies":{"gelfling":"~0.2.0","map-stream":"~0.0.1"},"devDependencies":{"should":"~1.2.1","mocha":"~1.7.4"},"scripts":{"test":"mocha ./test/fast.js -b -t 100s -R list"},"readmeFilename":"README.md","_id":"gelf-stream@0.2.1","dist":{"shasum":"07766d4a34d29fab91ecaab4a0c86fd15539fc66","size":2484,"noattachment":false,"key":"/gelf-stream/-/gelf-stream-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/gelf-stream/download/gelf-stream-0.2.1.tgz"},"_npmVersion":"1.2.0","_npmUser":{"name":"hichaelmart","email":"michael.hart.au@gmail.com"},"maintainers":[{"name":"hichaelmart","email":"michael.hart.au@gmail.com"}],"directories":{},"publish_time":1358464154572,"_hasShrinkwrap":false,"_cnpm_publish_time":1358464154572,"_cnpmcore_publish_time":"2021-12-17T00:23:48.128Z"},"0.2.0":{"name":"gelf-stream","version":"0.2.0","description":"A stream to send JS objects to a Graylog2 server (in GELF format)","author":{"name":"Michael Hart","email":"michael.hart.au@gmail.com","url":"http://github.com/mhart"},"main":"gelf-stream.js","keywords":["gelf","stream","graylog","graylog2","bunyan"],"repository":{"type":"git","url":"https://github.com/mhart/gelf-stream.git"},"license":"MIT","dependencies":{"gelfling":"~0.1.0","map-stream":"~0.0.1"},"devDependencies":{"should":"~1.2.1","mocha":"~1.7.4"},"scripts":{"test":"mocha ./test/fast.js -b -t 100s -R list"},"readmeFilename":"README.md","_id":"gelf-stream@0.2.0","dist":{"shasum":"a8b7458bf7e5630ed378d53e685c6a594b8a6f26","size":2467,"noattachment":false,"key":"/gelf-stream/-/gelf-stream-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gelf-stream/download/gelf-stream-0.2.0.tgz"},"_npmVersion":"1.2.0","_npmUser":{"name":"hichaelmart","email":"michael.hart.au@gmail.com"},"maintainers":[{"name":"hichaelmart","email":"michael.hart.au@gmail.com"}],"directories":{},"publish_time":1358397889682,"_hasShrinkwrap":false,"_cnpm_publish_time":1358397889682,"_cnpmcore_publish_time":"2021-12-17T00:23:48.327Z"},"0.0.1":{"name":"gelf-stream","version":"0.0.1","description":"A stream to send JS objects to a Graylog2 server (in GELF format)","author":{"name":"Michael Hart","email":"michael.hart.au@gmail.com","url":"http://github.com/mhart"},"main":"gelf-stream.js","keywords":["gelf","stream","graylog","graylog2","bunyan"],"repository":{"type":"git","url":"https://github.com/mhart/gelf-stream.git"},"license":"MIT","dependencies":{"gelfling":"~0.1.0","map-stream":"~0.0.1"},"devDependencies":{"should":"~1.2.1","mocha":"~1.7.4"},"scripts":{"test":"mocha ./test/fast.js -b -t 100s -R list"},"readmeFilename":"README.md","_id":"gelf-stream@0.0.1","dist":{"shasum":"b8cea527c29787412241bf82c0b95b025d12e146","size":2338,"noattachment":false,"key":"/gelf-stream/-/gelf-stream-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/gelf-stream/download/gelf-stream-0.0.1.tgz"},"_npmVersion":"1.2.0","_npmUser":{"name":"hichaelmart","email":"michael.hart.au@gmail.com"},"maintainers":[{"name":"hichaelmart","email":"michael.hart.au@gmail.com"}],"directories":{},"publish_time":1358396026457,"_hasShrinkwrap":false,"_cnpm_publish_time":1358396026457,"_cnpmcore_publish_time":"2021-12-17T00:23:48.528Z"}},"readme":"gelf-stream\n-----------\n\n[![Build Status](https://secure.travis-ci.org/mhart/gelf-stream.png?branch=master)](http://travis-ci.org/mhart/gelf-stream)\n\nA node.js stream to send JS objects to a\n[Graylog2](http://graylog2.org/) server (in\n[GELF](http://graylog2.org/resources/gelf) format).\n\nAlso provides a stream that can be used directly in\n[Bunyan](https://github.com/trentm/node-bunyan) and provides\na number of sane mappings.\n\nExample\n-------\n\n```javascript\nvar split = require('split'),\n    bunyan = require('bunyan'),\n    gelfStream = require('gelf-stream')\n\n// gelf-stream comes with Bunyan support\n\nvar stream = gelfStream.forBunyan('localhost')\n\nvar log = bunyan.createLogger({name: 'foo', streams: [{type: 'raw', stream: stream}]})\n\nlog.info('Testing Bunyan') // will be sent to the Graylog2 server on localhost\n\nlog.error(new Error('Oh noes!')) // will extract file/line numbers too\n\nstream.end() // Bunyan doesn't currently end the stream when the program has finished\n\n// Or you can use it to stream any sort of object/string\n\nprocess.stdin\n  .pipe(split()) // split into lines\n  .pipe(gelfStream.create('localhost', {defaults: {level: 6}}))\n\nprocess.stdin.resume()\n```\n\nAPI\n---\n\n### gelfStream.create([host], [port], [options])\n\n### gelfStream.forBunyan([host], [port], [options])\n\n\nInstallation\n------------\n\nWith [npm](http://npmjs.org/) do:\n\n```\nnpm install gelf-stream\n```\n\n","_attachments":{},"homepage":"https://github.com/mhart/gelf-stream#readme","bugs":{"url":"https://github.com/mhart/gelf-stream/issues"},"license":"MIT"}