This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
galaxy-tsg-olap-dll-multipo…/external-flume/conf/security/pro/tail.properties
2020-05-14 13:34:58 +08:00

35 lines
1.1 KiB
Properties
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

a2.sources = s2
a2.channels = c2
a2.sinks = k2
#指定source收集到的数据发送到哪个管道
a2.sources.s2.channels = c2
a2.sources.s2.type = TAILDIR
a2.sources.s2.channels = c2
a2.sources.s2.positionFile = /home/test/taildir_position.json
a2.sources.s2.filegroups = f1 f2
a2.sources.s2.filegroups.f1 = /home/test/log1/.*dat
a2.sources.s2.headers.f1.headerKey1 = value1
a2.sources.s2.filegroups.f2 = /home/test/log2/.*dat
a2.sources.s2.headers.f2.headerKey1 = value2
a2.sources.s2.headers.f2.headerKey2 = value2-2
a2.sources.s2.fileHeader = true
a2.sources.s2.maxBatchCount = 1000
#指定channel为memory,即表示所有的数据都装进memory当中
a2.channels.c2.type = memory
a2.channels.c2.capacity = 2000000
a2.channels.c2.transactionCapacity = 30000
a2.channels.c2.byteCapacityBufferPercentage = 40
a2.channels.c2.byteCapacity = 2147483648
#原始file roll sink将数据写到本机磁盘
a2.sinks.k2.type = file_roll
a2.sinks.k2.channel = c2
a2.sinks.k2.sink.pathManager = default
a2.sinks.k2.sink.pathManager.extension = dat
a2.sinks.k2.sink.pathManager.prefix = recv-
a2.sinks.k2.sink.rollInterval = 60
a2.sinks.k2.sink.directory = /home/test/recv1