rsyslog output plugin for Drifter.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
commands
scripts
test
.gitignore
LICENSE
README.md
index.js
package.json

README.md

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

$ npm install -g drifter-rsyslog
$ 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