Skip to content

Instantly share code, notes, and snippets.

@taotetek
Created April 18, 2015 14:58
Show Gist options
  • Save taotetek/b3a4537641311f195a7c to your computer and use it in GitHub Desktop.
Save taotetek/b3a4537641311f195a7c to your computer and use it in GitHub Desktop.
rsyslog + zeromq with curve encryption
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