Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A stream to send bunyan logs to a gelf server (i.e. Graylog2)
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
Makefile
gelf-console.js
package.json
readme.md

readme.md

Bunyan-gelf

A Bunyan writable stream that sends log records to a Graylog2 server or other GELF compatible log management system.

Features

  • Handles complex data by flattening it before sending to gelf.
  • Perform basic field mappings between bunyan and gelf fields.
  • Send any non-default gelf field as additional field (prefixed with _)

Documentation

Checkout the tests for now.

To use

var stream = require('bunyan-gelf').createStream({
      graylogPort: 12201,
      graylogHostname: '127.0.0.1', 
      connection: 'lan',
      maxChunkSizeWan: 1420,
      maxChunkSizeLan: 8154
    });

then, use the stream in bunyan loggers as usual.

Something went wrong with that request. Please try again.