Apache Flume在同一源上具有两个不同的拦截器

Apache Flume在同一源上具有两个不同的拦截器,apache,selector,interceptor,flume,Apache,Selector,Interceptor,Flume,我试图在同一个源上添加两个不同的拦截器,并将截获的数据发送到两个不同的通道。 但是,我无法配置相同的。找不到任何与此相关的文档。另外,我的频道选择器也有一些问题。不确定如何选择具有不同拦截器的通道 以下是我目前的代码: a1.sources = syslog_udp a1.channels = chan1 chan2 a1.sinks = sink1 sink2 //both are different kafka sinks a1.sources.syslog_udp.type = sys

我试图在同一个源上添加两个不同的拦截器,并将截获的数据发送到两个不同的通道。 但是,我无法配置相同的。找不到任何与此相关的文档。另外,我的频道选择器也有一些问题。不确定如何选择具有不同拦截器的通道

以下是我目前的代码:

a1.sources = syslog_udp
a1.channels = chan1 chan2
a1.sinks = sink1 sink2 //both are different kafka sinks


a1.sources.syslog_udp.type = syslogudp
a1.sources.syslog_udp.port = 514
a1.sources.syslog_udp.host = 0.0.0.0
a1.sources.syslog_udp.keepFields = true

a1.sources.syslog_udp.interceptors = i1 i2
a1.sources.syslog_udp.interceptors.i1.type = regex_filter
a1.sources.syslog_udp.interceptors.i1.regex = '<regex_string1>'
a1.sources.syslog_udp.interceptors.i1.excludeEvents = false

a1.sources.syslog_udp.interceptors.i2.type = regex_filter
a1.sources.syslog_udp.interceptors.i2.regex = '<regex_string1>'|'<regex_string2>'
a1.sources.syslog_udp.interceptors.i2.excludeEvents = false

a1.sources.syslog_udp.selector.type = multiplexing
a1.sources.syslog_udp.channels = chan1 chan2


a1.channels.chan1.type = memory
a1.channels.chan1.capacity = 200
a1.channels.chan2.type = memory
a1.channels.chan2.capacity = 200
a1.sources=syslog\u udp
a1.通道=通道1通道2
a1.sinks=sink1 sink2//两者都是不同的卡夫卡接收器
a1.sources.syslog_udp.type=syslogudp
a1.sources.syslog_udp.port=514
a1.sources.syslog_udp.host=0.0.0.0
a1.sources.syslog_udp.keepFields=true
a1.sources.syslog_udp.interceptors=i1 i2
a1.sources.syslog_udp.interceptors.i1.type=regex_过滤器
a1.sources.syslog_udp.interceptors.i1.regex=''
a1.sources.syslog_udp.interceptors.i1.excludeEvents=false
a1.sources.syslog\u udp.interceptors.i2.type=regex\u过滤器
a1.sources.syslog_udp.interceptors.i2.regex=''|''
a1.sources.syslog_udp.interceptors.i2.excludeEvents=false
a1.sources.syslog_udp.selector.type=多路复用
a1.sources.syslog_udp.channels=chan1 chan2
a1.channels.chan1.type=内存
a1.channels.chan1.capacity=200
a1.channels.chan2.type=内存
a1.channels.chan2.capacity=200

似乎没有直接的设置。 这种布局的一种解决方法是在一个代理中设置一个单/宽通道拦截器,将输出传输到avro接收器,为avro源设置一个新代理,并在此基础上设置新通道拦截器