winston-kibana

0.2.0 • Public • Published

winston-kibana

Build Status Dependency Status devDependency Status

Winston rewriter to optimized logs for Kibana usage.

Install

npm install winston-kibana

Usage

var winston = require('winston');
var winstonKibana = require('winston-kibana');
 
winston.addRewriter(winstonKibana({application: 'my-application'}));

winstonKibana(options)

Add some metadata useful for Kibana:

  • @timestamp: an ISO string timestamp
  • level: the level of the message
  • hostname: the hostname of the server
  • env: the current environement (NODE_ENV)
  • category: default to 'no-category' if there is no previous category defined

Default metadata are extended with options.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    0
  • 0.1.0
    3

Package Sidebar

Install

npm i winston-kibana

Weekly Downloads

3

Version

0.2.0

License

MIT

Last publish

Collaborators

  • dolmac
  • sachamorard
  • jsfez
  • mbar
  • ludowic
  • offirmo
  • neoziro