drifter-rsyslog
Stability: 1 - Experimental
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>)'.
data
Event function (data) {}
data
: Buffer Data returned from the destination.
Emitted when the destination sends back data.
end
Event function () {}
Emitted when stdin
is closed and all data was sent.
error
Event function (error) {}
error
: Object An error.code
: String An error code. For exampleECONNREFUSED
.
Emitted when the connection to the destination encounters an error.