如何配置UDPInput以使用heka-flood udp测试

时间:2016-04-12 13:34:03

标签: udp config hekad

我正在尝试测试向heka的UDPInput发送数据但没有成功。我决定尝试使用heka-flood工具来模仿UPD流量,但没有成功。我正在使用0.10版本的heka。我的heka.toml:

[UdpInput]
address = "127.0.0.1:4880"
net = "udp"
splitter = "udp_splitter"
decoder = "ProtobufDecoder"
set_hostname = true
# I have also tried not setting this as well

[udp_splitter]
type = "HekaFramingSplitter"

[ProtobufDecoder]

[LogOutput]
type = "LogOutput"
message_matcher = "Logger == 'UdpInput'"
encoder = "PayloadEncoder"

和我的flood.toml:

[udp_proto]
ip_address          = "127.0.0.1:4880"
sender              = "udp"  
pprof_file          = ""
encoder             = "protobuf"
num_messages        = 1000
corrupt_percentage  = 0.0001
signed_percentage   = 0.00011
variable_size_messages = false
ascii_only          = true
max_message_size    = 32000

如果我添加另一个输入,比如说一个日志分类器并将其添加到LogOutput的消息匹配器中,那么这些消息最终会被注销。我从来没有看到任何来自UpdInput的东西。我做错了什么?

0 个答案:

没有答案