下文中的agent统一取名为a1
#taildir source
a1.sources = r1
a1.sources.r1.type = TAILDIR #选择source为TAILDIR
a1.sources.r1.filegroups = f1 #需要监控的文件夹组,实现多目录监控
a1.sources.r1.filegroups.f1 = /opt/module/applog/log/app.* # 需要监控的文件夹
a1.sources.r1.positionFile = /opt/module/flume/taildir_position.json # 实现断点续传的临时文件
a1.sources.r1.interceptors = i1 # 拦截器组,可以自定拦截器
a1.sources.r1.interceptors.i1.type = com.xigema.flume.interceptor.ETLInterceptor$Builder #自定拦截器内部Buider类的包名
#=====================================================================
#kafka source
a1.sour