Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

uShip/winston-logstash-udp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

winston-logstash-udp Build Status

A Logstash UDP transport for winston.

Based on a gist by mbrevoort and inspired by winston-logstash.

Usage

Node

Recommended method:

    var winston = require('winston'),
        LogstashUDP = require('winston-logstash-udp').default;

    var logger = new(winston.Logger)({
      transports: [
        new LogstashUDP({
          port: 9999,
          appName: 'my application name',
          host: '127.0.0.1'
        })
      ]
    });

Logstash

    input {
      # Sample input over UDP
      udp { codec => "json" port => 9999 type => "sample" }
    }
    output {
      stdout { debug => true debug_format => "json"}
    }

Run Tests

  npm test

License: MIT

See LICENSE for the full license text.

About

Logstash UDP transport for winston

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 67.7%
  • TypeScript 32.3%