#1.自定义agent的名字source,channel,sink组件
a2.sources = r2
a2.channels = c2
a2.sinks = k2
#2.设置source的类型和配置
a2.sources.r2.type = exec
a2.sources.r2.command = tail -F /opt/module/flume/demo/123.log
#3.设置channel的类型和配置
a2.channels.c2.type = memory
a2.channels.c2.capacity = 1000
#4.设置sink的类型和配置
# Describe the sink
a2.sinks.k2.type = logger
a2.sources.r2.channels = c2
a2.sinks.k2.channel = c2