Code Monkey home page Code Monkey logo

winston-logstash's Introduction

Modules

HTTPInput
TCPInput
UDPInput
WebSocketInput
LogstashTransport

HTTPInput

~module.exports ⏏

Kind: inner class of HTTPInput

new module.exports(options)

Param Type Description
options Object The options object returned from the LogstashTransport class

module.exports~HTTPInput

Kind: inner class of module.exports

new HTTPInput()

The class that does transmission of logs using the HTTP Requests

TCPInput

~module.exports ⏏

Kind: inner class of TCPInput

new module.exports(options)

Param Type Description
options Object The options object returned from the LogstashTransport class

module.exports~TCPInput

Kind: inner class of module.exports

new TCPInput()

The class that does transmission of logs using the TCP input

Example

node examples/basic-tcp.js

UDPInput

~module.exports ⏏

Kind: inner class of UDPInput

new module.exports(options)

Param Type Description
options Object The options object returned from the LogstashTransport class

module.exports~UDPInput

Kind: inner class of module.exports

new UDPInput()

The class that does transmission of logs using the UDP input

Example

node examples/basic-udp.js

WebSocketInput

WebSocketInput~WebSocketInput

Kind: inner class of WebSocketInput

new WebSocketInput()

The class that does transmission of logs using the WebSockets

LogstashTransport

Author: Sarvesh Chitko ([email protected])

module.exports ⏏

Kind: Exported class

new module.exports(options)

Param Type Description
options Object The Configuration object
options.name String The name of the transport
options.input String The input that you want to use
options.host String The Logstash server host
options.port String The port of the Logstash pipeline you've configured

module.exports~LogstashTransport ⇐ Transport

Kind: inner class of module.exports
Extends: Transport

new LogstashTransport()

The main class that adds the Logstash capabilities to Winston

Throws:

  • UnsupportedInputError
  • InvalidParametersError

module.exports~log(info, callback)

Kind: inner method of module.exports

Param Type Description
info Object The log object that needs to be sent to Logstash
callback function Callback function to call, once processing the log message is processed

winston-logstash's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.