logstash-input-kafka 5.0.4 → 5.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/logstash/inputs/kafka.rb +15 -10
- data/logstash-input-kafka.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1b7a40fda83cae37949a0f0ba0af1b0fc5d929c
|
4
|
+
data.tar.gz: e136107cf74d443b112d5e792b83143fa5acc6d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8034561085a1156bcb0a577858ffa69e7d50aa2ca3e41526f7f3810d83ad7ac128979d88ccb63f141d01821c71d11c00354a91190e55ca26a6ba53d2deaa01eb
|
7
|
+
data.tar.gz: 8bfb557e53ee50659184aa5ab98d0833148900e5dff9b106be1d82c9a6a42ccc06191839ccdcf614408d50796a714b9412465c722bb571dd8bd02c29844fe016
|
data/CHANGELOG.md
CHANGED
@@ -7,20 +7,21 @@ require 'logstash-input-kafka_jars.rb'
|
|
7
7
|
# This input will read events from a Kafka topic. It uses the the newly designed
|
8
8
|
# 0.10 version of consumer API provided by Kafka to read messages from the broker.
|
9
9
|
#
|
10
|
-
# Here's a compatibility matrix that shows the Kafka
|
10
|
+
# Here's a compatibility matrix that shows the Kafka client versions that are compatible with each combination
|
11
11
|
# of Logstash and the Kafka input plugin:
|
12
12
|
#
|
13
13
|
# [options="header"]
|
14
14
|
# |==========================================================
|
15
|
-
# |Kafka
|
16
|
-
# |0.8 |
|
17
|
-
# |0.9 |
|
18
|
-
# |0.9 |
|
19
|
-
# |0.10 |
|
15
|
+
# |Kafka Client Version |Logstash Version |Plugin Version |Security Features |Why?
|
16
|
+
# |0.8 |2.0.0 - 2.x.x |<3.0.0 | |Legacy, 0.8 is still popular
|
17
|
+
# |0.9 |2.0.0 - 2.3.x | 3.x.x |Basic Auth, SSL |Works with the old Ruby Event API (`event['product']['price'] = 10`)
|
18
|
+
# |0.9 |2.4.0 - 5.0.x | 4.x.x |Basic Auth, SSL |Works with the new getter/setter APIs (`event.set('[product][price]', 10)`)
|
19
|
+
# |0.10 |2.4.0 - 5.0.x | 5.x.x |Basic Auth, SSL |Not compatible with the 0.9 broker
|
20
20
|
# |==========================================================
|
21
21
|
#
|
22
|
-
# NOTE:
|
23
|
-
#
|
22
|
+
# NOTE: We recommended that you use matching Kafka client and broker versions. During upgrades, you should
|
23
|
+
# upgrade brokers before clients because brokers target backwards compatibility. For example, the 0.9 broker
|
24
|
+
# is compatible with both the 0.8 consumer and 0.9 consumer APIs, but not the other way around.
|
24
25
|
#
|
25
26
|
# The Logstash Kafka consumer handles group management and uses the default offset management
|
26
27
|
# strategy using Kafka topics.
|
@@ -165,7 +166,11 @@ class LogStash::Inputs::Kafka < LogStash::Inputs::Base
|
|
165
166
|
|
166
167
|
public
|
167
168
|
def register
|
168
|
-
|
169
|
+
# Logstash 2.4
|
170
|
+
if defined?(LogStash::Logger) && LogStash::Logger.respond_to?(:setup_log4j)
|
171
|
+
LogStash::Logger.setup_log4j(@logger)
|
172
|
+
end
|
173
|
+
|
169
174
|
@runner_threads = []
|
170
175
|
end # def register
|
171
176
|
|
@@ -259,7 +264,7 @@ class LogStash::Inputs::Kafka < LogStash::Inputs::Base
|
|
259
264
|
|
260
265
|
org.apache.kafka.clients.consumer.KafkaConsumer.new(props)
|
261
266
|
rescue => e
|
262
|
-
logger.error("Unable to create Kafka consumer from given configuration", :kafka_error_message => e)
|
267
|
+
@logger.error("Unable to create Kafka consumer from given configuration", :kafka_error_message => e)
|
263
268
|
throw e
|
264
269
|
end
|
265
270
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-kafka'
|
3
|
-
s.version = '5.0.
|
3
|
+
s.version = '5.0.5'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = 'This input will read events from a Kafka topic. It uses the high level consumer API provided by Kafka to read messages from the broker'
|
6
6
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-kafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elasticsearch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|