내용 |
logAgent.sources=logSource
logAgent.channels=memoryChannel
logAgent.sinks=hdfsSink
logAgent.sources.logSource.type=taildir
logAgent.sources.logSource.channels=memoryChannel
logAgent.sources.logSource.positionFile = /home/hadoop/logs/taildir_position.json
logAgent.sources.logSource.filegroups = fg1
logAgent.sources.logSource.filegroups.fg1 = /home/hadoop/logs/log_*.log
logAgent.sinks.hdfsSink.type=hdfs
logAgent.sinks.hdfsSink.channel=memoryChannel
logAgent.sinks.hdfsSink.hdfs.path=hdfs://master:9000/user/flume/log
logAgent.sinks.hdfsSink.hdfs.round=true
logAgent.sinks.hdfsSink.hdfs.roundUnit=minute
logAgent.sinks.hdfsSink.hdfs.fileType=DataStream
logAgent.sinks.hdfsSink.hdfs.filePrefix=api
logAgent.sinks.hdfsSink.hdfs.inUseSuffix=.log
logAgent.sinks.hdfsSink.hdfs.useLocalTimeStamp=true
logAgent.sinks.hdfsSink.hdfs.rollInterval=300
logAgent.sinks.hdfsSink.hdfs.rollSize=2048
logAgent.channels.memoryChannel.type=memory
|