Package: rsyslog Version: 8.12.0-1 Severity: wishlist Tags: patch Dear Maintainers,
Please consider enabling the libczmq in/out plugins. A git format-patch that creates a new rsyslog-czmq package is attached. I tested it building 8.12.0-1 in a Sid chroot for i386 and amd64, and it builds and runs fine. Thank you! Kind regards, Luca Boccassi >From 0b60d94c320fd1bdd50032fa9bbfe860ab4f7954 Mon Sep 17 00:00:00 2001 From: Luca Boccassi <luca.bocca...@gmail.com> Date: Sun, 6 Sep 2015 22:24:16 +0100 Subject: [PATCH] Enable CZMQ plugins --- debian/control | 11 +++++++ debian/rsyslog-czmq.README.Debian | 64 +++++++++++++++++++++++++++++++++++++++ debian/rsyslog-czmq.install | 2 ++ debian/rules | 2 ++ 4 files changed, 79 insertions(+) create mode 100644 debian/rsyslog-czmq.README.Debian create mode 100644 debian/rsyslog-czmq.install diff --git a/debian/control b/debian/control index 7d3352a..f1b76b8 100644 --- a/debian/control +++ b/debian/control @@ -19,6 +19,7 @@ Build-Depends: debhelper (>= 8), liblognorm-dev (>= 1.0.2), liblogging-stdlog-dev (>= 1.0.3), libjson-c-dev, + libczmq-dev, uuid-dev, libsystemd-dev (>= 209) [linux-any], pkg-config, @@ -155,3 +156,13 @@ Description: RELP protocol support for rsyslog These plugins allow rsyslog to send and receive syslog messages via the RELP protocol. RELP ensures reliable transport over the network even on connection loss or if a peer becomes unavailable. + +Package: rsyslog-czmq +Architecture: any +Priority: extra +Depends: ${shlibs:Depends}, + ${misc:Depends}, + rsyslog (= ${binary:Version}) +Description: ZeroMQ protocol support for rsyslog via CZMQ + These plugins allows rsyslog to send and receive ZeroMQ syslog + messages via the CZMQ library. diff --git a/debian/rsyslog-czmq.README.Debian b/debian/rsyslog-czmq.README.Debian new file mode 100644 index 0000000..040acc2 --- /dev/null +++ b/debian/rsyslog-czmq.README.Debian @@ -0,0 +1,64 @@ +How to use rsyslog and CZMQ +=================================== + +Starting with version 8.6.0, rsyslog comes with output and input modules named +respectively "imczmq" and "omczmq", allowing to publish log messages via the +ZeroMQ protocol. More information about the protocol can be found on the website +http://zeromq.org/ + +Example configurations, taken from rsyslog upstream, follow. + +------------------------------------------------------------------------------- +module(load="imczmq") + +input( + type="imczmq" + endpoints="tcp://*:24555" + topics="topic1,topic2,topic3" + socktype="PULL" + authtype="CURVESERVER" + clientcertpath="/etc/curve.d/" + servercertpath="/etc/curve.d/example_curve_server_cert" +) +------------------------------------------------------------------------------- + +Explanation of Options: + +type: type of action (imczmq for this plugin) +endpoints: comma delimited list of zeromq endpoints (see zeromq documentation) +socktype: zeromq socket type (currently supports PULL and SUB) +authtype: CURVECLIENT or CURVESERVER +clientcertpath: + if CURVECLIENT, this client's cert + if CURVESERVER, "*" for all, or a directory of allowed public certs +servercertpath: + if CURVECLIENT, the servers public cert you wish to connect to + if CURVESERVER, this servers cert + +------------------------------------------------------------------------------- +module(load="omczmq") + +action( + name="curve_server_socket" + type="omczmq" + endpoints="tcp://some.server.com:24445" + socktype="PUSH" + authtype="CURVECLIENT" + clientcertpath="/etc/curve.d/example_curve_client_cert" + servercertpath="/etc/curve.d/example_curve_server_cert" +) +------------------------------------------------------------------------------- + +Explanation of Options: + +name: name of this action +type: type of action (omczmq for this plugin) +endpoints: comma delimited list of zeromq endpoints (see zeromq documentation) +socktype: zeromq socket type (currently supports PUSH and PUB) +authtype: CURVECLIENT or CURVESERVER +clientcertpath: + if CURVECLIENT, this client's cert + if CURVESERVER, "*" for all, or a directory of allowed public certs +servercertpath: + if CURVECLIENT, the servers public cert you wish to connect to + if CURVESERVER, this servers cert diff --git a/debian/rsyslog-czmq.install b/debian/rsyslog-czmq.install new file mode 100644 index 0000000..4f80ae4 --- /dev/null +++ b/debian/rsyslog-czmq.install @@ -0,0 +1,2 @@ +usr/lib/rsyslog/omczmq.so +usr/lib/rsyslog/imczmq.so diff --git a/debian/rules b/debian/rules index cc36bc9..9a44614 100755 --- a/debian/rules +++ b/debian/rules @@ -43,6 +43,8 @@ override_dh_auto_configure: --enable-mmutf8fix \ --enable-mmpstrucdata \ --enable-mmsequence \ + --enable-imczmq \ + --enable-omczmq \ --disable-libgcrypt \ --enable-testbench \ --enable-imdiag \ -- 2.1.4