//之前一直用的是memory缓存
channels通道类型为文件形式
[root@linux05 conf]# vim filechannel.conf
a1.sources=r1 a1.channels=c1 a1.sinks=k1 a1.sources.r1.type=spooldir a1.sources.r1.spoolDir=/flume a1.sources.r1.fileSuffix=.fuck a1.channels.c1.type = file a1.channels.c1.checkpointDir = /flumelogs/checkpoint a1.channels.c1.dataDir = /flumelogs/data a1.sinks.k1.type=logger a1.sinks.k1.channel=c1 a1.sources.r1.channels=c1
*********************************************************************
[root@linux05 conf]# flume-ng agent -c . -f filechannel.conf -n a1 -Dflume.root.logger=info,console
//查看监控结果