Created
April 18, 2015 14:58
-
-
Save taotetek/b3a4537641311f195a7c to your computer and use it in GitHub Desktop.
rsyslog + zeromq with curve encryption
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module(load="omczmq") | |
template(name="pubsub_host_tag" type="list" option.json="on") { | |
property(name="hostname") | |
constant(value=".") | |
property(name="syslogtag" position.from="1" position.to="32") | |
constant(value="|") | |
property(name="rawmsg") | |
} | |
ruleset(name="publisher") { | |
action( | |
name="curve_server_socket" | |
template="pubsub_host_tag" | |
type="omczmq" | |
endpoints="tcp://127.0.0.1:24445" | |
socktype="PUB" | |
authtype="CURVESERVER" | |
clientcertpath="/etc/curve.d/" | |
servercertpath="/etc/curve.d/example_curve_server_cert" | |
) | |
} | |
call publisher |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment