/
fluentd-consumer.properties
52 lines (38 loc) · 2.05 KB
/
fluentd-consumer.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Fluentd related parameters
# Fluentd instance destinations. Default is only localhost:24224
#fluentd.connect=localhost:24224,localhost:24225
# Fluentd client buffer configurations: https://github.com/komamitsu/fluency#buffer-configuration
#fluentd.client.buffer.chunk.initial.bytes = 1000000
#fluentd.client.buffer.chunk.retention.bytes = 2000000
#fluentd.client.buffer.max.bytes = 128000000
# Fixed event tag. Consumer sends events with fluentd.tag value to fluentd instance
#fluentd.tag=test
# Dynamic event tag with topic name. If you set "kafka.", generated event tag is "kafka.topic_name". Can't set both fluentd.tag and fluentd.tag.prefix at the same time
fluentd.tag.prefix=kafka.
# Message format. json or regexp are supported. json is default. fluentd.record.pattern is used when use regexp format.
# Use joni, Oniguruma port for Java, for regular expression engine.
#fluentd.record.format=regexp
#fluentd.record.pattern=(?<text>.*)
# Consumed topics. Java's regex could be used like "test.*" for consuming test1, test2 ... testN topics
fluentd.consumer.topics=test
# Supported patterns are "whitelist" or "blacklist". Default is "whitelist"
#fluentd.consumer.topics.pattern=blacklist
# Use parsed time instead of current time for fluentd event. fluentd.record.time.pattern is based on SimpleDateFormat: http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
#fluentd.record.time.field=time
#fluentd.record.time.pattern=dd/MMM/yyyy:HH:mm:ss Z
# The number of threads per consumer streams
fluentd.consumer.threads=2
# Batch size of Kafka offset commit. Default is 1000
#fluentd.consumer.batch.size=1000
# The path for backup un-flushed events during shutdown.
fluentd.consumer.backup.dir=/tmp/fluentd-consumer-backup/
# For debugging
fluentd.consumer.from.beginning=true
# Kafka Consumer related parameters
# See document: http://kafka.apache.org/documentation.html#consumerconfigs
zookeeper.connect=localhost:2181
group.id=test-consumer-group
zookeeper.session.timeout.ms=400
zookeeper.sync.time.ms=200
auto.commit.interval.ms=1000
auto.offset.reset=smallest