Skip to content

Instantly share code, notes, and snippets.

@taotetek
Created April 9, 2015 20:30
Show Gist options
  • Save taotetek/630a076afff8bfc43841 to your computer and use it in GitHub Desktop.
Save taotetek/630a076afff8bfc43841 to your computer and use it in GitHub Desktop.
module(load="omczmq")
template(name="PUBSUBTEST" type="list" option.json="on") {
property(name="hostname")
constant(value=".")
property(name="syslogtag" position.from="1" position.to="32")
constant(value="|")
property(name="msg")
}
ruleset(name="publisher") {
action(
name="curve_server_socket"
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"
)
}
if $syslogfacility-text == ['local6', 'local7'] then {
call publisher
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment