a1.sources=r1
a1.channels=c1
a1.sinks=k1
a1.sources.r1.type=TAILDIR
#该文件中记录了source读取到的内容的位置
#注意:一旦该文件丢失那么source后从该文件的开始位置重新读
a1.sources.r1.positionFile = /opt/module/flume/taildir_position.json
a1.sources.r1.filegroups = f1 f2
a1.sources.r1.filegroups.f1 = /opt/module/flume/demo/123.log
a1.sources.r1.filegroups.f2 = /opt/module/flume/demo/456.log
#设置channel的类型和配置
a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000
#设置sink的类型和配置
a1.sinks.k1.type = logger
a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1