fluent-plugin-kafka 0.15.2 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog +5 -0
- data/README.md +2 -0
- data/fluent-plugin-kafka.gemspec +1 -1
- data/lib/fluent/plugin/in_kafka.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 730f14a0d24b98ac7df9683bc0836f826ff80def0ee61c833bc4c1e61bf435ac
|
4
|
+
data.tar.gz: 0a647554fb96f88ae75c8b872399545bfdb6b26d12247f3715c56dda2e628d57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 802bef06a0cb0703e0e3c1d8c9581a96007b23a6b574d2c64f3bca362f6d4c531cbc4c9c17c78162705d655fc2e864af16182772a1db0ce2150c0e853b4f55ef
|
7
|
+
data.tar.gz: 0d3695bc1289b75cee1071fcf8e697250de9f0177b3facd69dd62e931a7b705fd93b24f886e683586d01f9daf9888d487ff6058da791d3779d09c076af854dd8
|
data/ChangeLog
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
Release 0.15.3 - 2020/12/08
|
2
|
+
|
3
|
+
* in_kafka: Fix `record_time_key` parameter not working
|
4
|
+
|
1
5
|
Release 0.15.2 - 2020/09/30
|
2
6
|
|
3
7
|
* input: Support 3rd party parser
|
@@ -28,6 +32,7 @@ Release 0.14.0 - 2020/08/07
|
|
28
32
|
Release 0.13.1 - 2020/07/17
|
29
33
|
|
30
34
|
* in_kafka_group: Support ssl_verify_hostname parameter
|
35
|
+
* in_kafka_group: Support regex based topics
|
31
36
|
* out_kafka2/out_rdkafka2: Support topic parameter with placeholders
|
32
37
|
|
33
38
|
Release 0.13.0 - 2020/03/09
|
data/README.md
CHANGED
@@ -139,6 +139,8 @@ Consume events by kafka consumer group features..
|
|
139
139
|
|
140
140
|
See also [ruby-kafka README](https://github.com/zendesk/ruby-kafka#consuming-messages-from-kafka) for more detailed documentation about ruby-kafka options.
|
141
141
|
|
142
|
+
`topics` supports regex pattern since v0.13.1. If you want to use regex pattern, use `/pattern/` like `/foo.*/`.
|
143
|
+
|
142
144
|
Consuming topic name is used for event tag. So when the target topic name is `app_event`, the tag is `app_event`. If you want to modify tag, use `add_prefix` or `add_suffix` parameter. With `add_prefix kafka`, the tag is `kafka.app_event`.
|
143
145
|
|
144
146
|
### Input plugin (@type 'rdkafka_group', supports kafka consumer groups, uses rdkafka-ruby)
|
data/fluent-plugin-kafka.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.name = "fluent-plugin-kafka"
|
15
15
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version = '0.15.
|
16
|
+
gem.version = '0.15.3'
|
17
17
|
gem.required_ruby_version = ">= 2.1.0"
|
18
18
|
|
19
19
|
gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
|
@@ -224,6 +224,7 @@ class Fluent::KafkaInput < Fluent::Input
|
|
224
224
|
router,
|
225
225
|
@kafka_message_key,
|
226
226
|
@time_source,
|
227
|
+
@record_time_key,
|
227
228
|
opt)
|
228
229
|
}
|
229
230
|
@topic_watchers.each {|tw|
|
@@ -248,7 +249,7 @@ class Fluent::KafkaInput < Fluent::Input
|
|
248
249
|
end
|
249
250
|
|
250
251
|
class TopicWatcher < Coolio::TimerWatcher
|
251
|
-
def initialize(topic_entry, kafka, interval, parser, add_prefix, add_suffix, offset_manager, router, kafka_message_key, time_source, options={})
|
252
|
+
def initialize(topic_entry, kafka, interval, parser, add_prefix, add_suffix, offset_manager, router, kafka_message_key, time_source, record_time_key, options={})
|
252
253
|
@topic_entry = topic_entry
|
253
254
|
@kafka = kafka
|
254
255
|
@callback = method(:consume)
|
@@ -260,6 +261,7 @@ class Fluent::KafkaInput < Fluent::Input
|
|
260
261
|
@router = router
|
261
262
|
@kafka_message_key = kafka_message_key
|
262
263
|
@time_source = time_source
|
264
|
+
@record_time_key = record_time_key
|
263
265
|
|
264
266
|
@next_offset = @topic_entry.offset
|
265
267
|
if @topic_entry.offset == -1 && offset_manager
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-kafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hidemasa Togashi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-12-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|