Skip to content

Commit

Permalink
Merge pull request #2657 from Kokan/gorian-graylog-tls
Browse files Browse the repository at this point in the history
graylog2 support tls, udp
  • Loading branch information
alltilla committed Apr 12, 2019
2 parents 48624ed + 360c7c8 commit 86dc700
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scl/graylog2/plugin.conf
Expand Up @@ -25,10 +25,11 @@

template-function "format-gelf" "$(format-json version='1.1' host='${HOST}' short_message='${MSG}' level=int(${LEVEL_NUM}) timestamp=int64(${R_UNIXTIME}) _program='${PROGRAM}' _pid=int(${PID}) _facility='${FACILITY}' _class='${.classifier.class}' --key .* --key _*)$(binary 0x00)";

block destination graylog2(host("127.0.0.1") port(12201) template("$(format-gelf)") ...) {
block destination graylog2(host("127.0.0.1") port(12201) transport(tcp) template("$(format-gelf)") ...) {
network("`host`"
port(`port`)
transport(tcp)
transport(`transport`)
template("`template`")
`__VARARGS__`);
};

0 comments on commit 86dc700

Please sign in to comment.