date: 2020-09-10title: flume配置文件 #标题
tags: flume #标签
categories: elastic stack # 分类

记录下flume配置文件。

  1. [root@host-33 conf]# cat flume-iov-sjjh.conf
  2. ########<<-------------RDC-CLOUD-RTC------------->>########
  3. IOV-SJJH-F2KA.sources=mysource_00 mysource_01 mysource_02 mysource_03 mysource_04 mysource_05 mysource_06 mysource_07 mysource_08
  4. IOV-SJJH-F2KA.channels=mychannel_00 mychannel_01 mychannel_02 mychannel_03 mychannel_04 mychannel_05 mychannel_06 mychannel_07 mychannel_08
  5. IOV-SJJH-F2KA.sinks=mysink_00 mysink_01 mysink_02 mysink_03 mysink_04 mysink_05 mysink_06 mysink_07 mysink_08
  6. ##閾捐矾鏃ュ織
  7. IOV-SJJH-F2KA.sources.mysource_00.type=TAILDIR
  8. IOV-SJJH-F2KA.sources.mysource_00.channels=mychannel_00
  9. IOV-SJJH-F2KA.sources.mysource_00.positionFile = /apps/var/log/.FlumE/taildir_position_00.json
  10. IOV-SJJH-F2KA.sources.mysource_00.filegroups = f1
  11. IOV-SJJH-F2KA.sources.mysource_00.filegroups.f1 = /apps/var/jakarta/logs/^sleuth.*.log
  12. IOV-SJJH-F2KA.sources.mysource_00.headers.f1.headerKey1 = VALUE1
  13. IOV-SJJH-F2KA.sources.mysource_00.fileHeader = true
  14. IOV-SJJH-F2KA.sinks.mysink_00.channel=mychannel_00
  15. IOV-SJJH-F2KA.sinks.mysink_00.type=org.apache.flume.sink.kafka.KafkaSink
  16. IOV-SJJH-F2KA.sinks.mysink_00.kafka.bootstrap.servers=192.168.1.26:9092
  17. IOV-SJJH-F2KA.sinks.mysink_00.kafka.topic=iov_sjjh_trace_online
  18. IOV-SJJH-F2KA.sinks.mysink_00.kafka.batchSize=1
  19. #IOV-SJJH-F2KA.sinks.mysink_00.kafka.producer.requiredAcks=1
  20. IOV-SJJH-F2KA.sinks.mysink_00.kafka.producer.linger.ms = 1
  21. IOV-SJJH-F2KA.sinks.mysink_00.kafka.producer.max.request.size = 4194304
  22. IOV-SJJH-F2KA.channels.mychannel_00.type=memory
  23. IOV-SJJH-F2KA.channels.mychannel_00.capacity=30000
  24. IOV-SJJH-F2KA.channels.mychannel_00.transactionCapacity=100
  25. ##璁块棶鏃ュ織
  26. IOV-SJJH-F2KA.sources.mysource_01.interceptors=i1 i2
  27. IOV-SJJH-F2KA.sources.mysource_01.interceptors.i1.type=regex_filter
  28. 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)
  29. IOV-SJJH-F2KA.sources.mysource_01.interceptors.i1.excludeEvents = true
  30. IOV-SJJH-F2KA.sources.mysource_01.interceptors.i2.type=regex_filter
  31. IOV-SJJH-F2KA.sources.mysource_01.interceptors.i2.regex=(/webjars/springfox-swagger-ui/)|(/csrf)
  32. IOV-SJJH-F2KA.sources.mysource_01.interceptors.i2.excludeEvents = true
  33. IOV-SJJH-F2KA.sources.mysource_01.type=TAILDIR
  34. IOV-SJJH-F2KA.sources.mysource_01.channels=mychannel_01
  35. #IOV-SJJH-F2KA.sources.mysource_01.inputCharset = UTF-8
  36. IOV-SJJH-F2KA.sources.mysource_01.positionFile = /apps/var/log/.FlumE/taildir_position_01.json
  37. IOV-SJJH-F2KA.sources.mysource_01.filegroups = f1
  38. IOV-SJJH-F2KA.sources.mysource_01.filegroups.f1 = /apps/var/jakarta/logs/^access.*.log
  39. IOV-SJJH-F2KA.sources.mysource_01.headers.f1.headerKey1 = VALUE1
  40. IOV-SJJH-F2KA.sources.mysource_01.fileHeader = true
  41. IOV-SJJH-F2KA.sinks.mysink_01.channel=mychannel_01
  42. IOV-SJJH-F2KA.sinks.mysink_01.type=org.apache.flume.sink.kafka.KafkaSink
  43. IOV-SJJH-F2KA.sinks.mysink_01.kafka.bootstrap.servers=192.168.1.26:9092
  44. IOV-SJJH-F2KA.sinks.mysink_01.kafka.topic=iov_sjjh_access_online
  45. IOV-SJJH-F2KA.sinks.mysink_01.kafka.batchSize=1
  46. #IOV-SJJH-F2KA.sinks.mysink_01.custom.encoding=UTF-8
  47. #IOV-SJJH-F2KA.sinks.mysink_01.kafka.producer.requiredAcks=1
  48. IOV-SJJH-F2KA.sinks.mysink_01.kafka.producer.linger.ms = 1
  49. IOV-SJJH-F2KA.sinks.mysink_01.kafka.producer.max.request.size = 4194304
  50. IOV-SJJH-F2KA.channels.mychannel_01.type=memory
  51. IOV-SJJH-F2KA.channels.mychannel_01.capacity=30000
  52. IOV-SJJH-F2KA.channels.mychannel_01.transactionCapacity=100
  53. ## 閿欒鏃ュ織
  54. IOV-SJJH-F2KA.sources.mysource_02.type=TAILDIR
  55. IOV-SJJH-F2KA.sources.mysource_02.channels=mychannel_02
  56. IOV-SJJH-F2KA.sources.mysource_02.positionFile = /apps/var/log/.FlumE/taildir_position_02.json
  57. IOV-SJJH-F2KA.sources.mysource_02.filegroups = f1
  58. IOV-SJJH-F2KA.sources.mysource_02.filegroups.f1 = /apps/var/jakarta/logs/^error.*.log
  59. IOV-SJJH-F2KA.sources.mysource_02.headers.f1.headerKey1 = VALUE1
  60. IOV-SJJH-F2KA.sources.mysource_02.fileHeader = true
  61. IOV-SJJH-F2KA.sinks.mysink_02.channel=mychannel_02
  62. IOV-SJJH-F2KA.sinks.mysink_02.type=org.apache.flume.sink.kafka.KafkaSink
  63. IOV-SJJH-F2KA.sinks.mysink_02.kafka.bootstrap.servers=192.168.1.26:9092
  64. IOV-SJJH-F2KA.sinks.mysink_02.kafka.topic=iov_sjjh_error_online
  65. IOV-SJJH-F2KA.sinks.mysink_02.kafka.batchSize=1
  66. #IOV-SJJH-F2KA.sinks.mysink_02.kafka.producer.requiredAcks=1
  67. IOV-SJJH-F2KA.sinks.mysink_02.kafka.producer.linger.ms = 1
  68. IOV-SJJH-F2KA.sinks.mysink_02.kafka.producer.max.request.size = 4194304
  69. IOV-SJJH-F2KA.channels.mychannel_02.type=memory
  70. IOV-SJJH-F2KA.channels.mychannel_02.capacity=30000
  71. IOV-SJJH-F2KA.channels.mychannel_02.transactionCapacity=100
  72. ## API缃戝叧璁块棶鏃ュ織
  73. IOV-SJJH-F2KA.sources.mysource_03.interceptors=i1 i2
  74. IOV-SJJH-F2KA.sources.mysource_03.interceptors.i1.type=regex_filter
  75. 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)
  76. IOV-SJJH-F2KA.sources.mysource_03.interceptors.i1.excludeEvents = true
  77. IOV-SJJH-F2KA.sources.mysource_03.interceptors.i2.type=regex_filter
  78. IOV-SJJH-F2KA.sources.mysource_03.interceptors.i2.regex=(/webjars/springfox-swagger-ui/)|(/csrf)
  79. IOV-SJJH-F2KA.sources.mysource_03.interceptors.i2.excludeEvents = true
  80. IOV-SJJH-F2KA.sources.mysource_03.type=TAILDIR
  81. IOV-SJJH-F2KA.sources.mysource_03.channels=mychannel_03
  82. IOV-SJJH-F2KA.sources.mysource_03.positionFile = /apps/var/log/.FlumE/taildir_position_03.json
  83. IOV-SJJH-F2KA.sources.mysource_03.filegroups = f1
  84. IOV-SJJH-F2KA.sources.mysource_03.filegroups.f1 = /apps/var/jakarta/logs/^access.*._iov-sjjh-gateway_.*.log
  85. IOV-SJJH-F2KA.sources.mysource_03.headers.f1.headerKey1 = VALUE1
  86. IOV-SJJH-F2KA.sources.mysource_03.fileHeader = true
  87. IOV-SJJH-F2KA.sinks.mysink_03.channel=mychannel_03
  88. IOV-SJJH-F2KA.sinks.mysink_03.type=org.apache.flume.sink.kafka.KafkaSink
  89. IOV-SJJH-F2KA.sinks.mysink_03.kafka.bootstrap.servers=192.168.1.26:9092
  90. IOV-SJJH-F2KA.sinks.mysink_03.kafka.topic=iov_sjjh_access_iov-sjjh-gateway_online
  91. IOV-SJJH-F2KA.sinks.mysink_03.kafka.batchSize=1
  92. IOV-SJJH-F2KA.sinks.mysink_03.kafka.producer.linger.ms = 1
  93. IOV-SJJH-F2KA.sinks.mysink_03.kafka.producer.max.request.size = 4194304
  94. IOV-SJJH-F2KA.channels.mychannel_03.type=memory
  95. IOV-SJJH-F2KA.channels.mychannel_03.capacity=30000
  96. IOV-SJJH-F2KA.channels.mychannel_03.transactionCapacity=100
  97. ##API浜岀骇缃戝叧璁块棶鏃ュ織
  98. IOV-SJJH-F2KA.sources.mysource_04.interceptors=i1 i2
  99. IOV-SJJH-F2KA.sources.mysource_04.interceptors.i1.type=regex_filter
  100. 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)
  101. IOV-SJJH-F2KA.sources.mysource_04.interceptors.i1.excludeEvents = true
  102. IOV-SJJH-F2KA.sources.mysource_04.interceptors.i2.type=regex_filter
  103. IOV-SJJH-F2KA.sources.mysource_04.interceptors.i2.regex=(/webjars/springfox-swagger-ui/)|(/csrf)
  104. IOV-SJJH-F2KA.sources.mysource_04.interceptors.i2.excludeEvents = true
  105. IOV-SJJH-F2KA.sources.mysource_04.type=TAILDIR
  106. IOV-SJJH-F2KA.sources.mysource_04.channels=mychannel_04
  107. IOV-SJJH-F2KA.sources.mysource_04.positionFile = /apps/var/log/.FlumE/taildir_position_04.json
  108. IOV-SJJH-F2KA.sources.mysource_04.filegroups = f1
  109. IOV-SJJH-F2KA.sources.mysource_04.filegroups.f1 = /apps/var/jakarta/logs/^access.*._iov-sjjh-gateway-ct_.*.log
  110. IOV-SJJH-F2KA.sources.mysource_04.headers.f1.headerKey1 = VALUE1
  111. IOV-SJJH-F2KA.sources.mysource_04.fileHeader = true
  112. IOV-SJJH-F2KA.sinks.mysink_04.channel=mychannel_04
  113. IOV-SJJH-F2KA.sinks.mysink_04.type=org.apache.flume.sink.kafka.KafkaSink
  114. IOV-SJJH-F2KA.sinks.mysink_04.kafka.bootstrap.servers=192.168.1.26:9092
  115. IOV-SJJH-F2KA.sinks.mysink_04.kafka.topic=iov_sjjh_access_iov-sjjh-gateway-ct_online
  116. IOV-SJJH-F2KA.sinks.mysink_04.kafka.batchSize=1
  117. IOV-SJJH-F2KA.sinks.mysink_04.kafka.producer.linger.ms = 1
  118. IOV-SJJH-F2KA.sinks.mysink_04.kafka.producer.max.request.size = 4194304
  119. IOV-SJJH-F2KA.channels.mychannel_04.type=memory
  120. IOV-SJJH-F2KA.channels.mychannel_04.capacity=30000
  121. IOV-SJJH-F2KA.channels.mychannel_04.transactionCapacity=100
  122. ##鍚庡彴缃叧块棶鏃ュ織
  123. IOV-SJJH-F2KA.sources.mysource_05.interceptors=i1 i2
  124. IOV-SJJH-F2KA.sources.mysource_05.interceptors.i1.type=regex_filter
  125. 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)
  126. IOV-SJJH-F2KA.sources.mysource_05.interceptors.i1.excludeEvents = true
  127. IOV-SJJH-F2KA.sources.mysource_05.interceptors.i2.type=regex_filter
  128. IOV-SJJH-F2KA.sources.mysource_05.interceptors.i2.regex=(/webjars/springfox-swagger-ui/)|(/csrf)
  129. IOV-SJJH-F2KA.sources.mysource_05.interceptors.i2.excludeEvents = true
  130. IOV-SJJH-F2KA.sources.mysource_05.type=TAILDIR
  131. IOV-SJJH-F2KA.sources.mysource_05.channels=mychannel_05
  132. IOV-SJJH-F2KA.sources.mysource_05.positionFile = /apps/var/log/.FlumE/taildir_position_05.json
  133. IOV-SJJH-F2KA.sources.mysource_05.filegroups = f1
  134. IOV-SJJH-F2KA.sources.mysource_05.filegroups.f1 = /apps/var/jakarta/logs/^access.*._iov-sjjh-gateway-portal_.*.log
  135. IOV-SJJH-F2KA.sources.mysource_05.headers.f1.headerKey1 = VALUE1
  136. IOV-SJJH-F2KA.sources.mysource_05.fileHeader = true
  137. IOV-SJJH-F2KA.sinks.mysink_05.channel=mychannel_05
  138. IOV-SJJH-F2KA.sinks.mysink_05.type=org.apache.flume.sink.kafka.KafkaSink
  139. IOV-SJJH-F2KA.sinks.mysink_05.kafka.bootstrap.servers=192.168.1.26:9092
  140. IOV-SJJH-F2KA.sinks.mysink_05.kafka.topic=iov_sjjh_access_iov-sjjh-gateway-portal_online
  141. IOV-SJJH-F2KA.sinks.mysink_05.kafka.batchSize=1
  142. IOV-SJJH-F2KA.sinks.mysink_05.kafka.producer.linger.ms = 1
  143. IOV-SJJH-F2KA.sinks.mysink_05.kafka.producer.max.request.size = 4194304
  144. IOV-SJJH-F2KA.channels.mychannel_05.type=memory
  145. IOV-SJJH-F2KA.channels.mychannel_05.capacity=30000
  146. IOV-SJJH-F2KA.channels.mychannel_05.transactionCapacity=100
  147. ## API涓€绾х綉鍏冲搷搴旀棩蹇
  148. IOV-SJJH-F2KA.sources.mysource_06.interceptors=i1 i2
  149. IOV-SJJH-F2KA.sources.mysource_06.interceptors.i1.type=regex_filter
  150. 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)
  151. IOV-SJJH-F2KA.sources.mysource_06.interceptors.i1.excludeEvents = true
  152. IOV-SJJH-F2KA.sources.mysource_06.interceptors.i2.type=regex_filter
  153. IOV-SJJH-F2KA.sources.mysource_06.interceptors.i2.regex=(/webjars/springfox-swagger-ui/)|(/csrf)
  154. IOV-SJJH-F2KA.sources.mysource_06.interceptors.i2.excludeEvents = true
  155. IOV-SJJH-F2KA.sources.mysource_06.type=TAILDIR
  156. IOV-SJJH-F2KA.sources.mysource_06.channels=mychannel_06
  157. IOV-SJJH-F2KA.sources.mysource_06.positionFile = /apps/var/log/.FlumE/taildir_position_06.json
  158. IOV-SJJH-F2KA.sources.mysource_06.filegroups = f1
  159. IOV-SJJH-F2KA.sources.mysource_06.filegroups.f1 = /apps/var/jakarta/logs/^request.*._iov-sjjh-gateway_.*.log
  160. IOV-SJJH-F2KA.sources.mysource_06.headers.f1.headerKey1 = VALUE1
  161. IOV-SJJH-F2KA.sources.mysource_06.fileHeader = true
  162. IOV-SJJH-F2KA.sinks.mysink_06.channel=mychannel_06
  163. IOV-SJJH-F2KA.sinks.mysink_06.type=org.apache.flume.sink.kafka.KafkaSink
  164. IOV-SJJH-F2KA.sinks.mysink_06.kafka.bootstrap.servers=192.168.1.26:9092
  165. IOV-SJJH-F2KA.sinks.mysink_06.kafka.topic=iov_sjjh_request_online
  166. IOV-SJJH-F2KA.sinks.mysink_06.kafka.batchSize=1
  167. IOV-SJJH-F2KA.sinks.mysink_06.kafka.producer.linger.ms = 1
  168. IOV-SJJH-F2KA.sinks.mysink_06.kafka.producer.max.request.size = 4194304
  169. IOV-SJJH-F2KA.channels.mychannel_06.type=memory
  170. IOV-SJJH-F2KA.channels.mychannel_06.capacity=30000
  171. IOV-SJJH-F2KA.channels.mychannel_06.transactionCapacity=100
  172. ## yysj 涓€绾х綉鍏冲搷搴旀棩蹇
  173. IOV-SJJH-F2KA.sources.mysource_07.interceptors=i1 i2
  174. IOV-SJJH-F2KA.sources.mysource_07.interceptors.i1.type=regex_filter
  175. 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)
  176. IOV-SJJH-F2KA.sources.mysource_07.interceptors.i1.excludeEvents = true
  177. IOV-SJJH-F2KA.sources.mysource_07.interceptors.i2.type=regex_filter
  178. IOV-SJJH-F2KA.sources.mysource_07.interceptors.i2.regex=(/webjars/springfox-swagger-ui/)|(/csrf)
  179. IOV-SJJH-F2KA.sources.mysource_07.interceptors.i2.excludeEvents = true
  180. IOV-SJJH-F2KA.sources.mysource_07.type=TAILDIR
  181. IOV-SJJH-F2KA.sources.mysource_07.channels=mychannel_07
  182. IOV-SJJH-F2KA.sources.mysource_07.positionFile = /apps/var/log/.FlumE/taildir_position_07.json
  183. IOV-SJJH-F2KA.sources.mysource_07.filegroups = f1
  184. IOV-SJJH-F2KA.sources.mysource_07.filegroups.f1 = /apps/var/jakarta/logs/^yysjaccess.*._cloud-yysj-check-info.*.log
  185. IOV-SJJH-F2KA.sources.mysource_07.headers.f1.headerKey1 = VALUE1
  186. IOV-SJJH-F2KA.sources.mysource_07.fileHeader = true
  187. IOV-SJJH-F2KA.sinks.mysink_07.channel=mychannel_07
  188. IOV-SJJH-F2KA.sinks.mysink_07.type=org.apache.flume.sink.kafka.KafkaSink
  189. IOV-SJJH-F2KA.sinks.mysink_07.kafka.bootstrap.servers=192.168.1.26:9092
  190. IOV-SJJH-F2KA.sinks.mysink_07.kafka.topic=cloud_yysj_check_info_online
  191. IOV-SJJH-F2KA.sinks.mysink_07.kafka.batchSize=1
  192. IOV-SJJH-F2KA.sinks.mysink_07.kafka.producer.linger.ms = 1
  193. IOV-SJJH-F2KA.sinks.mysink_07.kafka.producer.max.request.size = 4194304
  194. IOV-SJJH-F2KA.channels.mychannel_07.type=memory
  195. IOV-SJJH-F2KA.channels.mychannel_07.capacity=30000
  196. IOV-SJJH-F2KA.channels.mychannel_07.transactionCapacity=100
  197. ## yysj 浜岀骇缃戝叧鍝嶅簲鏃ュ織
  198. IOV-SJJH-F2KA.sources.mysource_08.interceptors=i1 i2
  199. IOV-SJJH-F2KA.sources.mysource_08.interceptors.i1.type=regex_filter
  200. 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)
  201. IOV-SJJH-F2KA.sources.mysource_08.interceptors.i1.excludeEvents = true
  202. IOV-SJJH-F2KA.sources.mysource_08.interceptors.i2.type=regex_filter
  203. IOV-SJJH-F2KA.sources.mysource_08.interceptors.i2.regex=(/webjars/springfox-swagger-ui/)|(/csrf)
  204. IOV-SJJH-F2KA.sources.mysource_08.interceptors.i2.excludeEvents = true
  205. IOV-SJJH-F2KA.sources.mysource_08.type=TAILDIR
  206. IOV-SJJH-F2KA.sources.mysource_08.channels=mychannel_08
  207. IOV-SJJH-F2KA.sources.mysource_08.positionFile = /apps/var/log/.FlumE/taildir_position_08.json
  208. IOV-SJJH-F2KA.sources.mysource_08.filegroups = f1
  209. IOV-SJJH-F2KA.sources.mysource_08.filegroups.f1 = /apps/var/jakarta/logs/^yysjaccess.*._cloud-yysj-product-check.*.log
  210. IOV-SJJH-F2KA.sources.mysource_08.headers.f1.headerKey1 = VALUE1
  211. IOV-SJJH-F2KA.sources.mysource_08.fileHeader = true
  212. IOV-SJJH-F2KA.sinks.mysink_08.channel=mychannel_08
  213. IOV-SJJH-F2KA.sinks.mysink_08.type=org.apache.flume.sink.kafka.KafkaSink
  214. IOV-SJJH-F2KA.sinks.mysink_08.kafka.bootstrap.servers=192.168.1.26:9092
  215. IOV-SJJH-F2KA.sinks.mysink_08.kafka.topic=cloud_yysj_product_check_online
  216. IOV-SJJH-F2KA.sinks.mysink_08.kafka.batchSize=1
  217. IOV-SJJH-F2KA.sinks.mysink_08.kafka.producer.linger.ms = 1
  218. IOV-SJJH-F2KA.sinks.mysink_08.kafka.producer.max.request.size = 4194304
  219. IOV-SJJH-F2KA.channels.mychannel_08.type=memory
  220. IOV-SJJH-F2KA.channels.mychannel_08.capacity=30000
  221. IOV-SJJH-F2KA.channels.mychannel_08.transactionCapacity=100