Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

bunyan-logstash

0.3.4 • Public • Published

Logstash UDP stream for Bunyan

Configuration options

level string info
server string os.hostname()
host string "127.0.0.1"
port number 9999
application string process.title
pid string process.pid
tags array|string[] ["bunyan"]

Adding the bunyan-logstash stream to Bunyan

var log = bunyan.createLogger({
  streams: [
    {
      type: "raw",
      stream: require('bunyan-logstash').createStream({
        host: '127.0.0.1',
        port: 5505
      })
    }
  ]
});

Keywords

none

install

npm i bunyan-logstash

Downloadsweekly downloads

3,676

version

0.3.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability