新建配置文件:vim test_taildir_file_hdfs.conf 位置:
#组件声明
a1.sources = s1
a1.channels = c1
a1.sinks = k1
#初始化数据源
a1.sources.s1.type = taildir
a1.sources.s1.filegroups = f1 f2 #两个文件用空格隔开
a1.sources.s1.filegroups.f1 = /root/data/flume/tail01/prolog.*\\.log #这是虚拟机中的第1个文件
a1.sources.s1.filegroups.f2 = /root/data/flume/tail02