logstash-integration-kafka 11.4.2-java → 11.5.0-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 383808eedfb695e63b606d437248901ffef18c5dfc43a572bb420bcaa4147c16
4
- data.tar.gz: 3e41986e2317416458089768c285444b7d9179ed4979246a91c13b07f9cc7159
3
+ metadata.gz: 3742372cdd8a8d7156590031aad63b4c5d820446d197d3a172dd8cc2dd44fed9
4
+ data.tar.gz: be0d8faf56ba103a9921223e82137c2fb0ad737f20abdc81ccddc5fa7db8808f
5
5
  SHA512:
6
- metadata.gz: 63d084d6681593a5ec9f52f78d864625a1d60705e55c6d39c98c7f1e3259d6e96a595b91359ca52a6258a55fbfd9211d3dcbebe2054563cc3a1c959b4e6c45f9
7
- data.tar.gz: 21f7e576577224c8008a9b48137b2049fbdad4b72c3bdb8b81039a11e768ea2757f364469b7f5635b549e04180cb9a059f26787ae952de69883a94de34c635b3
6
+ metadata.gz: bc2f4b1311c3e0d5742dfd8cfddb07eb22b5bf8fe53ba015953d4761916993903a890c08cbd1a5a7c208834c4ffed7e69736e15b7c8f856accd8387968493735
7
+ data.tar.gz: a821facccb4c252338bc4be58b082185017ab7e6493efeb12a625747186729881dfe01bae740b0e74a2f52aca36ff0db8f1beaabcbbc12106c0ce0a70d542e47
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 11.5.0
2
+ - Add "auto_create_topics" option to allow disabling of topic auto creation [#172](https://github.com/logstash-plugins/logstash-integration-kafka/pull/172)
3
+
1
4
  ## 11.4.2
2
5
  - Add default client_id of logstash to kafka output [#169](https://github.com/logstash-plugins/logstash-integration-kafka/pull/169)
3
6
 
@@ -98,6 +98,7 @@ See the https://kafka.apache.org/{kafka_client_doc}/documentation for more detai
98
98
  |=======================================================================
99
99
  |Setting |Input type|Required
100
100
  | <<plugins-{type}s-{plugin}-auto_commit_interval_ms>> |<<number,number>>|No
101
+ | <<plugins-{type}s-{plugin}-auto_create_topics>> |<<boolean,boolean>>|No
101
102
  | <<plugins-{type}s-{plugin}-auto_offset_reset>> |<<string,string>>|No
102
103
  | <<plugins-{type}s-{plugin}-bootstrap_servers>> |<<string,string>>|No
103
104
  | <<plugins-{type}s-{plugin}-check_crcs>> |<<boolean,boolean>>|No
@@ -285,6 +286,17 @@ This will add a field named `kafka` to the logstash event containing the followi
285
286
  * `offset`: The offset from the partition this message is associated with
286
287
  * `key`: A ByteBuffer containing the message key
287
288
 
289
+
290
+ [id="plugins-{type}s-{plugin}-auto_create_topics"]
291
+ ===== `auto_create_topics` 
292
+
293
+   * Value type is <<boolean,boolean>>
294
+ * Default value is `true`
295
+
296
+ Controls whether the topic is automatically created when subscribing to a non-existent topic.
297
+ A topic will be auto-created only if this configuration is set to `true` and auto-topic creation is enabled on the broker using `auto.create.topics.enable`;
298
+ otherwise auto-topic creation is not permitted. 
299
+
288
300
  [id="plugins-{type}s-{plugin}-enable_auto_commit"]
289
301
  ===== `enable_auto_commit`
290
302
 
@@ -789,7 +801,6 @@ Filtering by a regular expression is done by retrieving the full list of topic n
789
801
  NOTE: When the broker has some topics configured with ACL rules and they miss the DESCRIBE permission, then the subscription
790
802
  happens but on the broker side it is logged that the subscription of some topics was denied to the configured user.
791
803
 
792
-
793
804
  [id="plugins-{type}s-{plugin}-value_deserializer_class"]
794
805
  ===== `value_deserializer_class`
795
806
 
@@ -246,6 +246,12 @@ class LogStash::Inputs::Kafka < LogStash::Inputs::Base
246
246
  # `timestamp`: The timestamp of this message
247
247
  # While with `extended` it adds also all the key values present in the Kafka header if the key is valid UTF-8 else
248
248
  # silently skip it.
249
+ #
250
+ # Controls whether a kafka topic is automatically created when subscribing to a non-existent topic.
251
+ # A topic will be auto-created only if this configuration is set to `true` and auto-topic creation is enabled on the broker using `auto.create.topics.enable`; 
252
+ # otherwise auto-topic creation is not permitted.
253
+ config :auto_create_topics, :validate => :boolean, :default => true
254
+
249
255
  config :decorate_events, :validate => %w(none basic extended false true), :default => "none"
250
256
 
251
257
  attr_reader :metadata_mode
@@ -410,6 +416,7 @@ class LogStash::Inputs::Kafka < LogStash::Inputs::Base
410
416
 
411
417
  props.put(kafka::AUTO_COMMIT_INTERVAL_MS_CONFIG, auto_commit_interval_ms.to_s) unless auto_commit_interval_ms.nil?
412
418
  props.put(kafka::AUTO_OFFSET_RESET_CONFIG, auto_offset_reset) unless auto_offset_reset.nil?
419
+ props.put(kafka::ALLOW_AUTO_CREATE_TOPICS_CONFIG, auto_create_topics) unless auto_create_topics.nil?
413
420
  props.put(kafka::BOOTSTRAP_SERVERS_CONFIG, bootstrap_servers)
414
421
  props.put(kafka::CHECK_CRCS_CONFIG, check_crcs.to_s) unless check_crcs.nil?
415
422
  props.put(kafka::CLIENT_DNS_LOOKUP_CONFIG, client_dns_lookup)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-integration-kafka'
3
- s.version = '11.4.2'
3
+ s.version = '11.5.0'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = "Integration with Kafka - input and output plugins"
6
6
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline "+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-integration-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.4.2
4
+ version: 11.5.0
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-17 00:00:00.000000000 Z
11
+ date: 2024-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -17,8 +17,8 @@ dependencies:
17
17
  - !ruby/object:Gem::Version
18
18
  version: 0.3.12
19
19
  name: jar-dependencies
20
- type: :development
21
20
  prerelease: false
21
+ type: :development
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
@@ -34,8 +34,8 @@ dependencies:
34
34
  - !ruby/object:Gem::Version
35
35
  version: '2.99'
36
36
  name: logstash-core-plugin-api
37
- type: :runtime
38
37
  prerelease: false
38
+ type: :runtime
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - ">="
@@ -51,8 +51,8 @@ dependencies:
51
51
  - !ruby/object:Gem::Version
52
52
  version: 8.3.0
53
53
  name: logstash-core
54
- type: :runtime
55
54
  prerelease: false
55
+ type: :runtime
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
@@ -65,8 +65,8 @@ dependencies:
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  name: logstash-codec-json
68
- type: :runtime
69
68
  prerelease: false
69
+ type: :runtime
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
@@ -79,8 +79,8 @@ dependencies:
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  name: logstash-codec-plain
82
- type: :runtime
83
82
  prerelease: false
83
+ type: :runtime
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - ">="
@@ -96,8 +96,8 @@ dependencies:
96
96
  - !ruby/object:Gem::Version
97
97
  version: 0.1.0
98
98
  name: stud
99
- type: :runtime
100
99
  prerelease: false
100
+ type: :runtime
101
101
  version_requirements: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - ">="
@@ -116,8 +116,8 @@ dependencies:
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.0.0
118
118
  name: manticore
119
- type: :runtime
120
119
  prerelease: false
120
+ type: :runtime
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - ">="
@@ -133,8 +133,8 @@ dependencies:
133
133
  - !ruby/object:Gem::Version
134
134
  version: '1.0'
135
135
  name: logstash-mixin-deprecation_logger_support
136
- type: :runtime
137
136
  prerelease: false
137
+ type: :runtime
138
138
  version_requirements: !ruby/object:Gem::Requirement
139
139
  requirements:
140
140
  - - "~>"
@@ -147,8 +147,8 @@ dependencies:
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  name: logstash-devutils
150
- type: :development
151
150
  prerelease: false
151
+ type: :development
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  requirements:
154
154
  - - ">="
@@ -161,8 +161,8 @@ dependencies:
161
161
  - !ruby/object:Gem::Version
162
162
  version: '0'
163
163
  name: logstash-codec-line
164
- type: :development
165
164
  prerelease: false
165
+ type: :development
166
166
  version_requirements: !ruby/object:Gem::Requirement
167
167
  requirements:
168
168
  - - ">="
@@ -175,8 +175,8 @@ dependencies:
175
175
  - !ruby/object:Gem::Version
176
176
  version: '0'
177
177
  name: rspec-wait
178
- type: :development
179
178
  prerelease: false
179
+ type: :development
180
180
  version_requirements: !ruby/object:Gem::Requirement
181
181
  requirements:
182
182
  - - ">="
@@ -189,8 +189,8 @@ dependencies:
189
189
  - !ruby/object:Gem::Version
190
190
  version: 0.5.1
191
191
  name: digest-crc
192
- type: :development
193
192
  prerelease: false
193
+ type: :development
194
194
  version_requirements: !ruby/object:Gem::Requirement
195
195
  requirements:
196
196
  - - "~>"
@@ -203,8 +203,8 @@ dependencies:
203
203
  - !ruby/object:Gem::Version
204
204
  version: '0'
205
205
  name: ruby-kafka
206
- type: :development
207
206
  prerelease: false
207
+ type: :development
208
208
  version_requirements: !ruby/object:Gem::Requirement
209
209
  requirements:
210
210
  - - ">="
@@ -217,8 +217,8 @@ dependencies:
217
217
  - !ruby/object:Gem::Version
218
218
  version: '0'
219
219
  name: snappy
220
- type: :development
221
220
  prerelease: false
221
+ type: :development
222
222
  version_requirements: !ruby/object:Gem::Requirement
223
223
  requirements:
224
224
  - - ">="
@@ -289,7 +289,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
289
289
  - !ruby/object:Gem::Version
290
290
  version: '0'
291
291
  requirements: []
292
- rubygems_version: 3.3.26
292
+ rubygems_version: 3.2.33
293
293
  signing_key:
294
294
  specification_version: 4
295
295
  summary: Integration with Kafka - input and output plugins