date: 2020-09-10title: flume配置文件 #标题
tags: flume #标签
categories: elastic stack # 分类
记录下flume配置文件。
[root@host-33 conf]# cat flume-iov-sjjh.conf
########<<-------------RDC-CLOUD-RTC------------->>########
IOV-SJJH-F2KA.sources=mysource_00 mysource_01 mysource_02 mysource_03 mysource_04 mysource_05 mysource_06 mysource_07 mysource_08
IOV-SJJH-F2KA.channels=mychannel_00 mychannel_01 mychannel_02 mychannel_03 mychannel_04 mychannel_05 mychannel_06 mychannel_07 mychannel_08
IOV-SJJH-F2KA.sinks=mysink_00 mysink_01 mysink_02 mysink_03 mysink_04 mysink_05 mysink_06 mysink_07 mysink_08
##閾捐矾鏃ュ織
IOV-SJJH-F2KA.sources.mysource_00.type=TAILDIR
IOV-SJJH-F2KA.sources.mysource_00.channels=mychannel_00
IOV-SJJH-F2KA.sources.mysource_00.positionFile = /apps/var/log/.FlumE/taildir_position_00.json
IOV-SJJH-F2KA.sources.mysource_00.filegroups = f1
IOV-SJJH-F2KA.sources.mysource_00.filegroups.f1 = /apps/var/jakarta/logs/^sleuth.*.log
IOV-SJJH-F2KA.sources.mysource_00.headers.f1.headerKey1 = VALUE1
IOV-SJJH-F2KA.sources.mysource_00.fileHeader = true
IOV-SJJH-F2KA.sinks.mysink_00.channel=mychannel_00
IOV-SJJH-F2KA.sinks.mysink_00.type=org.apache.flume.sink.kafka.KafkaSink
IOV-SJJH-F2KA.sinks.mysink_00.kafka.bootstrap.servers=192.168.1.26:9092
IOV-SJJH-F2KA.sinks.mysink_00.kafka.topic=iov_sjjh_trace_online
IOV-SJJH-F2KA.sinks.mysink_00.kafka.batchSize=1
#IOV-SJJH-F2KA.sinks.mysink_00.kafka.producer.requiredAcks=1
IOV-SJJH-F2KA.sinks.mysink_00.kafka.producer.linger.ms = 1
IOV-SJJH-F2KA.sinks.mysink_00.kafka.producer.max.request.size = 4194304
IOV-SJJH-F2KA.channels.mychannel_00.type=memory
IOV-SJJH-F2KA.channels.mychannel_00.capacity=30000
IOV-SJJH-F2KA.channels.mychannel_00.transactionCapacity=100
##璁块棶鏃ュ織
IOV-SJJH-F2KA.sources.mysource_01.interceptors=i1 i2
IOV-SJJH-F2KA.sources.mysource_01.interceptors.i1.type=regex_filter
IOV-SJJH-F2KA.sources.mysource_01.interceptors.i1.regex=("URI":"/actuator)|("URI":"/api/v2/spans)|(/favicon.ico)|(/v2/api-docs)|(/swagger-resources)|(/swagger-ui.html)
IOV-SJJH-F2KA.sources.mysource_01.interceptors.i1.excludeEvents = true
IOV-SJJH-F2KA.sources.mysource_01.interceptors.i2.type=regex_filter
IOV-SJJH-F2KA.sources.mysource_01.interceptors.i2.regex=(/webjars/springfox-swagger-ui/)|(/csrf)
IOV-SJJH-F2KA.sources.mysource_01.interceptors.i2.excludeEvents = true
IOV-SJJH-F2KA.sources.mysource_01.type=TAILDIR
IOV-SJJH-F2KA.sources.mysource_01.channels=mychannel_01
#IOV-SJJH-F2KA.sources.mysource_01.inputCharset = UTF-8
IOV-SJJH-F2KA.sources.mysource_01.positionFile = /apps/var/log/.FlumE/taildir_position_01.json
IOV-SJJH-F2KA.sources.mysource_01.filegroups = f1
IOV-SJJH-F2KA.sources.mysource_01.filegroups.f1 = /apps/var/jakarta/logs/^access.*.log
IOV-SJJH-F2KA.sources.mysource_01.headers.f1.headerKey1 = VALUE1
IOV-SJJH-F2KA.sources.mysource_01.fileHeader = true
IOV-SJJH-F2KA.sinks.mysink_01.channel=mychannel_01
IOV-SJJH-F2KA.sinks.mysink_01.type=org.apache.flume.sink.kafka.KafkaSink
IOV-SJJH-F2KA.sinks.mysink_01.kafka.bootstrap.servers=192.168.1.26:9092
IOV-SJJH-F2KA.sinks.mysink_01.kafka.topic=iov_sjjh_access_online
IOV-SJJH-F2KA.sinks.mysink_01.kafka.batchSize=1
#IOV-SJJH-F2KA.sinks.mysink_01.custom.encoding=UTF-8
#IOV-SJJH-F2KA.sinks.mysink_01.kafka.producer.requiredAcks=1
IOV-SJJH-F2KA.sinks.mysink_01.kafka.producer.linger.ms = 1
IOV-SJJH-F2KA.sinks.mysink_01.kafka.producer.max.request.size = 4194304
IOV-SJJH-F2KA.channels.mychannel_01.type=memory
IOV-SJJH-F2KA.channels.mychannel_01.capacity=30000
IOV-SJJH-F2KA.channels.mychannel_01.transactionCapacity=100
## 閿欒鏃ュ織
IOV-SJJH-F2KA.sources.mysource_02.type=TAILDIR
IOV-SJJH-F2KA.sources.mysource_02.channels=mychannel_02
IOV-SJJH-F2KA.sources.mysource_02.positionFile = /apps/var/log/.FlumE/taildir_position_02.json
IOV-SJJH-F2KA.sources.mysource_02.filegroups = f1
IOV-SJJH-F2KA.sources.mysource_02.filegroups.f1 = /apps/var/jakarta/logs/^error.*.log
IOV-SJJH-F2KA.sources.mysource_02.headers.f1.headerKey1 = VALUE1
IOV-SJJH-F2KA.sources.mysource_02.fileHeader = true
IOV-SJJH-F2KA.sinks.mysink_02.channel=mychannel_02
IOV-SJJH-F2KA.sinks.mysink_02.type=org.apache.flume.sink.kafka.KafkaSink
IOV-SJJH-F2KA.sinks.mysink_02.kafka.bootstrap.servers=192.168.1.26:9092
IOV-SJJH-F2KA.sinks.mysink_02.kafka.topic=iov_sjjh_error_online
IOV-SJJH-F2KA.sinks.mysink_02.kafka.batchSize=1
#IOV-SJJH-F2KA.sinks.mysink_02.kafka.producer.requiredAcks=1
IOV-SJJH-F2KA.sinks.mysink_02.kafka.producer.linger.ms = 1
IOV-SJJH-F2KA.sinks.mysink_02.kafka.producer.max.request.size = 4194304
IOV-SJJH-F2KA.channels.mychannel_02.type=memory
IOV-SJJH-F2KA.channels.mychannel_02.capacity=30000
IOV-SJJH-F2KA.channels.mychannel_02.transactionCapacity=100
## API缃戝叧璁块棶鏃ュ織
IOV-SJJH-F2KA.sources.mysource_03.interceptors=i1 i2
IOV-SJJH-F2KA.sources.mysource_03.interceptors.i1.type=regex_filter
IOV-SJJH-F2KA.sources.mysource_03.interceptors.i1.regex=("URI":"/actuator)|("URI":"/api/v2/spans)|(/favicon.ico)|(/v2/api-docs)|(/swagger-resources)|(/swagger-ui.html)
IOV-SJJH-F2KA.sources.mysource_03.interceptors.i1.excludeEvents = true
IOV-SJJH-F2KA.sources.mysource_03.interceptors.i2.type=regex_filter
IOV-SJJH-F2KA.sources.mysource_03.interceptors.i2.regex=(/webjars/springfox-swagger-ui/)|(/csrf)
IOV-SJJH-F2KA.sources.mysource_03.interceptors.i2.excludeEvents = true
IOV-SJJH-F2KA.sources.mysource_03.type=TAILDIR
IOV-SJJH-F2KA.sources.mysource_03.channels=mychannel_03
IOV-SJJH-F2KA.sources.mysource_03.positionFile = /apps/var/log/.FlumE/taildir_position_03.json
IOV-SJJH-F2KA.sources.mysource_03.filegroups = f1
IOV-SJJH-F2KA.sources.mysource_03.filegroups.f1 = /apps/var/jakarta/logs/^access.*._iov-sjjh-gateway_.*.log
IOV-SJJH-F2KA.sources.mysource_03.headers.f1.headerKey1 = VALUE1
IOV-SJJH-F2KA.sources.mysource_03.fileHeader = true
IOV-SJJH-F2KA.sinks.mysink_03.channel=mychannel_03
IOV-SJJH-F2KA.sinks.mysink_03.type=org.apache.flume.sink.kafka.KafkaSink
IOV-SJJH-F2KA.sinks.mysink_03.kafka.bootstrap.servers=192.168.1.26:9092
IOV-SJJH-F2KA.sinks.mysink_03.kafka.topic=iov_sjjh_access_iov-sjjh-gateway_online
IOV-SJJH-F2KA.sinks.mysink_03.kafka.batchSize=1
IOV-SJJH-F2KA.sinks.mysink_03.kafka.producer.linger.ms = 1
IOV-SJJH-F2KA.sinks.mysink_03.kafka.producer.max.request.size = 4194304
IOV-SJJH-F2KA.channels.mychannel_03.type=memory
IOV-SJJH-F2KA.channels.mychannel_03.capacity=30000
IOV-SJJH-F2KA.channels.mychannel_03.transactionCapacity=100
##API浜岀骇缃戝叧璁块棶鏃ュ織
IOV-SJJH-F2KA.sources.mysource_04.interceptors=i1 i2
IOV-SJJH-F2KA.sources.mysource_04.interceptors.i1.type=regex_filter
IOV-SJJH-F2KA.sources.mysource_04.interceptors.i1.regex=("URI":"/actuator)|("URI":"/api/v2/spans)|(/favicon.ico)|(/v2/api-docs)|(/swagger-resources)|(/swagger-ui.html)
IOV-SJJH-F2KA.sources.mysource_04.interceptors.i1.excludeEvents = true
IOV-SJJH-F2KA.sources.mysource_04.interceptors.i2.type=regex_filter
IOV-SJJH-F2KA.sources.mysource_04.interceptors.i2.regex=(/webjars/springfox-swagger-ui/)|(/csrf)
IOV-SJJH-F2KA.sources.mysource_04.interceptors.i2.excludeEvents = true
IOV-SJJH-F2KA.sources.mysource_04.type=TAILDIR
IOV-SJJH-F2KA.sources.mysource_04.channels=mychannel_04
IOV-SJJH-F2KA.sources.mysource_04.positionFile = /apps/var/log/.FlumE/taildir_position_04.json
IOV-SJJH-F2KA.sources.mysource_04.filegroups = f1
IOV-SJJH-F2KA.sources.mysource_04.filegroups.f1 = /apps/var/jakarta/logs/^access.*._iov-sjjh-gateway-ct_.*.log
IOV-SJJH-F2KA.sources.mysource_04.headers.f1.headerKey1 = VALUE1
IOV-SJJH-F2KA.sources.mysource_04.fileHeader = true
IOV-SJJH-F2KA.sinks.mysink_04.channel=mychannel_04
IOV-SJJH-F2KA.sinks.mysink_04.type=org.apache.flume.sink.kafka.KafkaSink
IOV-SJJH-F2KA.sinks.mysink_04.kafka.bootstrap.servers=192.168.1.26:9092
IOV-SJJH-F2KA.sinks.mysink_04.kafka.topic=iov_sjjh_access_iov-sjjh-gateway-ct_online
IOV-SJJH-F2KA.sinks.mysink_04.kafka.batchSize=1
IOV-SJJH-F2KA.sinks.mysink_04.kafka.producer.linger.ms = 1
IOV-SJJH-F2KA.sinks.mysink_04.kafka.producer.max.request.size = 4194304
IOV-SJJH-F2KA.channels.mychannel_04.type=memory
IOV-SJJH-F2KA.channels.mychannel_04.capacity=30000
IOV-SJJH-F2KA.channels.mychannel_04.transactionCapacity=100
##鍚庡彴缃叧块棶鏃ュ織
IOV-SJJH-F2KA.sources.mysource_05.interceptors=i1 i2
IOV-SJJH-F2KA.sources.mysource_05.interceptors.i1.type=regex_filter
IOV-SJJH-F2KA.sources.mysource_05.interceptors.i1.regex=("URI":"/actuator)|("URI":"/api/v2/spans)|(/favicon.ico)|(/v2/api-docs)|(/swagger-resources)|(/swagger-ui.html)
IOV-SJJH-F2KA.sources.mysource_05.interceptors.i1.excludeEvents = true
IOV-SJJH-F2KA.sources.mysource_05.interceptors.i2.type=regex_filter
IOV-SJJH-F2KA.sources.mysource_05.interceptors.i2.regex=(/webjars/springfox-swagger-ui/)|(/csrf)
IOV-SJJH-F2KA.sources.mysource_05.interceptors.i2.excludeEvents = true
IOV-SJJH-F2KA.sources.mysource_05.type=TAILDIR
IOV-SJJH-F2KA.sources.mysource_05.channels=mychannel_05
IOV-SJJH-F2KA.sources.mysource_05.positionFile = /apps/var/log/.FlumE/taildir_position_05.json
IOV-SJJH-F2KA.sources.mysource_05.filegroups = f1
IOV-SJJH-F2KA.sources.mysource_05.filegroups.f1 = /apps/var/jakarta/logs/^access.*._iov-sjjh-gateway-portal_.*.log
IOV-SJJH-F2KA.sources.mysource_05.headers.f1.headerKey1 = VALUE1
IOV-SJJH-F2KA.sources.mysource_05.fileHeader = true
IOV-SJJH-F2KA.sinks.mysink_05.channel=mychannel_05
IOV-SJJH-F2KA.sinks.mysink_05.type=org.apache.flume.sink.kafka.KafkaSink
IOV-SJJH-F2KA.sinks.mysink_05.kafka.bootstrap.servers=192.168.1.26:9092
IOV-SJJH-F2KA.sinks.mysink_05.kafka.topic=iov_sjjh_access_iov-sjjh-gateway-portal_online
IOV-SJJH-F2KA.sinks.mysink_05.kafka.batchSize=1
IOV-SJJH-F2KA.sinks.mysink_05.kafka.producer.linger.ms = 1
IOV-SJJH-F2KA.sinks.mysink_05.kafka.producer.max.request.size = 4194304
IOV-SJJH-F2KA.channels.mychannel_05.type=memory
IOV-SJJH-F2KA.channels.mychannel_05.capacity=30000
IOV-SJJH-F2KA.channels.mychannel_05.transactionCapacity=100
## API涓€绾х綉鍏冲搷搴旀棩蹇
IOV-SJJH-F2KA.sources.mysource_06.interceptors=i1 i2
IOV-SJJH-F2KA.sources.mysource_06.interceptors.i1.type=regex_filter
IOV-SJJH-F2KA.sources.mysource_06.interceptors.i1.regex=("URI":"/actuator)|("URI":"/api/v2/spans)|(/favicon.ico)|(/v2/api-docs)|(/swagger-resources)|(/swagger-ui.html)
IOV-SJJH-F2KA.sources.mysource_06.interceptors.i1.excludeEvents = true
IOV-SJJH-F2KA.sources.mysource_06.interceptors.i2.type=regex_filter
IOV-SJJH-F2KA.sources.mysource_06.interceptors.i2.regex=(/webjars/springfox-swagger-ui/)|(/csrf)
IOV-SJJH-F2KA.sources.mysource_06.interceptors.i2.excludeEvents = true
IOV-SJJH-F2KA.sources.mysource_06.type=TAILDIR
IOV-SJJH-F2KA.sources.mysource_06.channels=mychannel_06
IOV-SJJH-F2KA.sources.mysource_06.positionFile = /apps/var/log/.FlumE/taildir_position_06.json
IOV-SJJH-F2KA.sources.mysource_06.filegroups = f1
IOV-SJJH-F2KA.sources.mysource_06.filegroups.f1 = /apps/var/jakarta/logs/^request.*._iov-sjjh-gateway_.*.log
IOV-SJJH-F2KA.sources.mysource_06.headers.f1.headerKey1 = VALUE1
IOV-SJJH-F2KA.sources.mysource_06.fileHeader = true
IOV-SJJH-F2KA.sinks.mysink_06.channel=mychannel_06
IOV-SJJH-F2KA.sinks.mysink_06.type=org.apache.flume.sink.kafka.KafkaSink
IOV-SJJH-F2KA.sinks.mysink_06.kafka.bootstrap.servers=192.168.1.26:9092
IOV-SJJH-F2KA.sinks.mysink_06.kafka.topic=iov_sjjh_request_online
IOV-SJJH-F2KA.sinks.mysink_06.kafka.batchSize=1
IOV-SJJH-F2KA.sinks.mysink_06.kafka.producer.linger.ms = 1
IOV-SJJH-F2KA.sinks.mysink_06.kafka.producer.max.request.size = 4194304
IOV-SJJH-F2KA.channels.mychannel_06.type=memory
IOV-SJJH-F2KA.channels.mychannel_06.capacity=30000
IOV-SJJH-F2KA.channels.mychannel_06.transactionCapacity=100
## yysj 涓€绾х綉鍏冲搷搴旀棩蹇
IOV-SJJH-F2KA.sources.mysource_07.interceptors=i1 i2
IOV-SJJH-F2KA.sources.mysource_07.interceptors.i1.type=regex_filter
IOV-SJJH-F2KA.sources.mysource_07.interceptors.i1.regex=("URI":"/actuator)|("URI":"/api/v2/spans)|(/favicon.ico)|(/v2/api-docs)|(/swagger-resources)|(/swagger-ui.html)
IOV-SJJH-F2KA.sources.mysource_07.interceptors.i1.excludeEvents = true
IOV-SJJH-F2KA.sources.mysource_07.interceptors.i2.type=regex_filter
IOV-SJJH-F2KA.sources.mysource_07.interceptors.i2.regex=(/webjars/springfox-swagger-ui/)|(/csrf)
IOV-SJJH-F2KA.sources.mysource_07.interceptors.i2.excludeEvents = true
IOV-SJJH-F2KA.sources.mysource_07.type=TAILDIR
IOV-SJJH-F2KA.sources.mysource_07.channels=mychannel_07
IOV-SJJH-F2KA.sources.mysource_07.positionFile = /apps/var/log/.FlumE/taildir_position_07.json
IOV-SJJH-F2KA.sources.mysource_07.filegroups = f1
IOV-SJJH-F2KA.sources.mysource_07.filegroups.f1 = /apps/var/jakarta/logs/^yysjaccess.*._cloud-yysj-check-info.*.log
IOV-SJJH-F2KA.sources.mysource_07.headers.f1.headerKey1 = VALUE1
IOV-SJJH-F2KA.sources.mysource_07.fileHeader = true
IOV-SJJH-F2KA.sinks.mysink_07.channel=mychannel_07
IOV-SJJH-F2KA.sinks.mysink_07.type=org.apache.flume.sink.kafka.KafkaSink
IOV-SJJH-F2KA.sinks.mysink_07.kafka.bootstrap.servers=192.168.1.26:9092
IOV-SJJH-F2KA.sinks.mysink_07.kafka.topic=cloud_yysj_check_info_online
IOV-SJJH-F2KA.sinks.mysink_07.kafka.batchSize=1
IOV-SJJH-F2KA.sinks.mysink_07.kafka.producer.linger.ms = 1
IOV-SJJH-F2KA.sinks.mysink_07.kafka.producer.max.request.size = 4194304
IOV-SJJH-F2KA.channels.mychannel_07.type=memory
IOV-SJJH-F2KA.channels.mychannel_07.capacity=30000
IOV-SJJH-F2KA.channels.mychannel_07.transactionCapacity=100
## yysj 浜岀骇缃戝叧鍝嶅簲鏃ュ織
IOV-SJJH-F2KA.sources.mysource_08.interceptors=i1 i2
IOV-SJJH-F2KA.sources.mysource_08.interceptors.i1.type=regex_filter
IOV-SJJH-F2KA.sources.mysource_08.interceptors.i1.regex=("URI":"/actuator)|("URI":"/api/v2/spans)|(/favicon.ico)|(/v2/api-docs)|(/swagger-resources)|(/swagger-ui.html)
IOV-SJJH-F2KA.sources.mysource_08.interceptors.i1.excludeEvents = true
IOV-SJJH-F2KA.sources.mysource_08.interceptors.i2.type=regex_filter
IOV-SJJH-F2KA.sources.mysource_08.interceptors.i2.regex=(/webjars/springfox-swagger-ui/)|(/csrf)
IOV-SJJH-F2KA.sources.mysource_08.interceptors.i2.excludeEvents = true
IOV-SJJH-F2KA.sources.mysource_08.type=TAILDIR
IOV-SJJH-F2KA.sources.mysource_08.channels=mychannel_08
IOV-SJJH-F2KA.sources.mysource_08.positionFile = /apps/var/log/.FlumE/taildir_position_08.json
IOV-SJJH-F2KA.sources.mysource_08.filegroups = f1
IOV-SJJH-F2KA.sources.mysource_08.filegroups.f1 = /apps/var/jakarta/logs/^yysjaccess.*._cloud-yysj-product-check.*.log
IOV-SJJH-F2KA.sources.mysource_08.headers.f1.headerKey1 = VALUE1
IOV-SJJH-F2KA.sources.mysource_08.fileHeader = true
IOV-SJJH-F2KA.sinks.mysink_08.channel=mychannel_08
IOV-SJJH-F2KA.sinks.mysink_08.type=org.apache.flume.sink.kafka.KafkaSink
IOV-SJJH-F2KA.sinks.mysink_08.kafka.bootstrap.servers=192.168.1.26:9092
IOV-SJJH-F2KA.sinks.mysink_08.kafka.topic=cloud_yysj_product_check_online
IOV-SJJH-F2KA.sinks.mysink_08.kafka.batchSize=1
IOV-SJJH-F2KA.sinks.mysink_08.kafka.producer.linger.ms = 1
IOV-SJJH-F2KA.sinks.mysink_08.kafka.producer.max.request.size = 4194304
IOV-SJJH-F2KA.channels.mychannel_08.type=memory
IOV-SJJH-F2KA.channels.mychannel_08.capacity=30000
IOV-SJJH-F2KA.channels.mychannel_08.transactionCapacity=100