drifter-rsyslog

0.1.1 • Public • Published

drifter-rsyslog

Stability: 1 - Experimental

NPM version

Drifter output plugin for rsyslog.

Overview

drifter-rsyslog is an rsyslog output plugin. It encodes the message as a query string and issues an HTTP GET request to the specified destination.

Usage

/path/to/drifter-rsyslog send http://localhost:8080

Tests

npm test

Documentation

send

Starts to listen for messages on stdin, transforms them into a query string, and sends them to the destination as an HTTP GET request.

Usage: drifter-rsyslog send <destination>

Turns message into drifter format and sends over HTTP(S) to the specified
destination. Destination is a URI 'http(s)://<hostname>(:<port>)'.

Event data

  • function (data) {}
    • data: Buffer Data returned from the destination.

Emitted when the destination sends back data.

Event end

  • function () {}

Emitted when stdin is closed and all data was sent.

Event error

  • function (error) {}
    • error: Object An error.
      • code: String An error code. For example ECONNREFUSED.

Emitted when the connection to the destination encounters an error.

Sources

Dependencies (1)

Dev Dependencies (1)

Package Sidebar

Install

npm i drifter-rsyslog

Weekly Downloads

2

Version

0.1.1

License

MIT

Last publish

Collaborators

  • tristanls