欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

flume-ng syslogtcp整合配置文件

程序员文章站 2022-05-12 10:12:50
...

#configuration 'flume78Agent'
flume78Agent.sources=source78
flume78Agent.sinks=sink78-1 sink78-2
flume78Agent.channels=channel78

#configuration sinks group
flume78Agent.sinksgroups=group78

#configuration sources
flume78Agent.sources.source78.type=syslogtcp
flume78Agent.sources.source78.port=514
flume78Agent.sources.source78.host=10.21.3.78
flume78Agent.sources.source78.channels=channel78

#configuration channels
flume78Agent.channels.channel78.type=memory
flume78Agent.channels.channel78.capacity=2000
flume78Agent.channels.channel78.transactionCapacity=1000
flume78Agent.channels.channel78.keep-alive=10

#configuration sink78-1
flume78Agent.sinks.sink78-1.type=avro
flume78Agent.sinks.sink78-1.port=4141
flume78Agent.sinks.sink78-1.hostname=10.21.3.73
flume78Agent.sinks.sink78-1.channel=channel78

#configuration sink78-2
flume78Agent.sinks.sink78-2.type=avro
flume78Agent.sinks.sink78-2.port=4141
flume78Agent.sinks.sink78-2.hostname=10.21.3.73
flume78Agent.sinks.sink78-2.channel=channel78

flume78Agent.sinkgroups.group78.sinks=sink78-1 sink78-2

# load_balance type
flume78Agent.sinkgroups.group78.processor.type = load_balance
flume78Agent.sinkgroups.group78.processor.backoff   = true
flume78Agent.sinkgroups.group78.processor.selector  = random

相关标签: flume