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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
listen
type linemode
2003 proto tcp
2003 proto udp
/tmp/.s.carbon-c-relay.2003 proto unix
;
statistics
submit every 60 seconds
prefix with carbon.relays.test_hostname
;
cluster foo
file
/dev/stdout
;
match ^sin\.foobar\.sin_1a_host0[0-4][0-9]\..+
send to foo
stop
;
match ^sin\.foobar\.sin_1a_host0[5-9][0-9]\..+
send to foo
stop
;
match ^sin\.foobar\.sin_1a_host1[0-4][0-9]\..+
send to foo
stop
;
match *
send to foo
stop
;
match
^sin\.foobar\.sin_1a_host0[0-4][0-9]\..+ (regex) -> sin.foobar.sin_1a_host000.foo
file(foo)
/dev/stdout
stop
match
^sin\.foobar\.sin_1a_host0[5-9][0-9]\..+ (regex) -> sin.foobar.sin_1a_host050.foo
file(foo)
/dev/stdout
stop
match
^sin\.foobar\.sin_1a_host1[0-4][0-9]\..+ (regex) -> sin.foobar.sin_1a_host100.foo
file(foo)
/dev/stdout
stop
|