File: riemann-example.conf

package info (click to toggle)
syslog-ng 4.8.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,572 kB
  • sloc: ansic: 177,639; python: 13,035; cpp: 11,611; makefile: 7,012; sh: 5,147; java: 3,651; xml: 3,344; yacc: 1,377; lex: 599; perl: 193; awk: 190; objc: 162
file content (26 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@version: 3.28

source s_network {
    tcp(port(12345));
};

destination d_riemann {
    riemann(
        server("localhost")
        port(5555)

        ttl("300.5")
        metric(int("$SEQNUM"))
        description("syslog-ng-incubator riemann test")
        state("ok")
        #tags("foo", "bar", "baz")
        attributes(x-ultimate-answer("$(+ $PID 42)")
                   key("MESSAGE", rekey(add-prefix("x-"))))
    );
};

log {
    source(s_network);
    destination(d_riemann);
    flags(flow-control);
};