1,one source two channel 创建conf文件,内容如下: #定义agent名, source.channel.sink的名称 access.sources = r1 access.channels = c1 c2 access.sinks = k1 k2 #具体定义source access.sources.r1.type = netcat access.sources.r1.bind = 0.0.0.0 access.sources.r1.port = #具体定义chan