bin/flume-ng agent -c conf -f conf/log2hdfs.conf -n agent1
agent1.sources = source1
agent1.sinks = sink1
agent1.channels = channel1
# Describe/configure tail -F source1
agent1.sources.source1.type = exec
agent1.sources.source1.shell = /bin/bash -c
agent1.sources.source1.command = tail -n +0 -F "/home/zhili_http_datainput/http-datainput/bin/logs/http-datainput.log.
本文介绍如何利用Flume工具监控每天按日期滚动的日志文件,并通过配置文件conf/log2hdfs.conf来实现数据流向管理,启动Flume agent1进行日志收集并传输到HDFS。
订阅专栏 解锁全文
932

被折叠的 条评论
为什么被折叠?



