logstash-input-azure_event_hubs 1.2.2 → 1.2.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.md +3 -0
- data/LICENSE +2 -1
- data/VERSION +1 -1
- data/lib/logstash/inputs/azure_event_hubs.rb +5 -1
- data/spec/inputs/azure_event_hub_spec.rb +2 -2
- 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: 504e5a3185917fb8bad235bc1c9198919be6186d2ce5c40b4a26679fb4cd2a6a
|
4
|
+
data.tar.gz: 3b50e6b5485c8af058624264881a9c0ba43f916861774582d1e021e98339305d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c9307f7a58a4cb971f1a3417740e47aec017de26c4554df0f5ddeb18d1cd44e3f1220f00e2dd3dfb1a228402cf06c810d8840998bdef9f985ac17fa4d69004c
|
7
|
+
data.tar.gz: 4bad8dbe16d7169093fd93d644957ce10dfbde9ff3898cb4b408ef82f6befc494a77c9aa7bf9ba53904acb77dbdf80b4d3465288fb9d40653f3a330df107428d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 1.2.3
|
2
|
+
- Fixed missing configuration of `prefetch_count` and `receive_timeout` [#61](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/61)
|
3
|
+
|
1
4
|
## 1.2.2
|
2
5
|
- Refactor: scope and review global java_imports [#57](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/57)
|
3
6
|
|
data/LICENSE
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
Apache License
|
2
3
|
Version 2.0, January 2004
|
3
4
|
http://www.apache.org/licenses/
|
@@ -186,7 +187,7 @@
|
|
186
187
|
same "printed page" as the copyright notice for easier
|
187
188
|
identification within third-party archives.
|
188
189
|
|
189
|
-
Copyright
|
190
|
+
Copyright 2020 Elastic and contributors
|
190
191
|
|
191
192
|
Licensed under the Apache License, Version 2.0 (the "License");
|
192
193
|
you may not use this file except in compliance with the License.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.3
|
@@ -18,6 +18,7 @@ class LogStash::Inputs::AzureEventHubs < LogStash::Inputs::Base
|
|
18
18
|
java_import com.microsoft.azure.eventhubs.ConnectionStringBuilder
|
19
19
|
java_import java.util.concurrent.Executors
|
20
20
|
java_import java.util.concurrent.TimeUnit
|
21
|
+
java_import java.time.Duration
|
21
22
|
|
22
23
|
config_name "azure_event_hubs"
|
23
24
|
|
@@ -290,7 +291,7 @@ class LogStash::Inputs::AzureEventHubs < LogStash::Inputs::Base
|
|
290
291
|
# }
|
291
292
|
config :decorate_events, :validate => :boolean, :default => false
|
292
293
|
|
293
|
-
attr_reader :count
|
294
|
+
attr_reader :count
|
294
295
|
|
295
296
|
def initialize(params)
|
296
297
|
|
@@ -409,6 +410,9 @@ class LogStash::Inputs::AzureEventHubs < LogStash::Inputs::Base
|
|
409
410
|
end
|
410
411
|
options = EventProcessorOptions.new
|
411
412
|
options.setMaxBatchSize(max_batch_size)
|
413
|
+
options.setPrefetchCount(prefetch_count)
|
414
|
+
options.setReceiveTimeOut(Duration.ofSeconds(receive_timeout))
|
415
|
+
|
412
416
|
options.setExceptionNotification(LogStash::Inputs::Azure::ErrorNotificationHandler.new)
|
413
417
|
case @initial_position
|
414
418
|
when 'beginning'
|
@@ -21,7 +21,7 @@ describe LogStash::Inputs::AzureEventHubs do
|
|
21
21
|
expect(exploded_config[i]['event_hub_connections'][0].value).to start_with('Endpoint=sb://...')
|
22
22
|
expect(exploded_config[i]['storage_connection'].value).to eql('DefaultEndpointsProtocol=https;AccountName=...')
|
23
23
|
expect(exploded_config[i]['threads']).to be == 9
|
24
|
-
expect(exploded_config[i]['codec']).to
|
24
|
+
expect(exploded_config[i]['codec'].class.to_s).to eq("LogStash::Codecs::Plain")
|
25
25
|
expect(exploded_config[i]['consumer_group']).to eql('cg')
|
26
26
|
expect(exploded_config[i]['max_batch_size']).to be == 20
|
27
27
|
expect(exploded_config[i]['prefetch_count']).to be == 30
|
@@ -179,7 +179,7 @@ describe LogStash::Inputs::AzureEventHubs do
|
|
179
179
|
expect(exploded_config[1]['event_hub_connections'][0].value).to eql('1Endpoint=sb://...')
|
180
180
|
expect(exploded_config[1]['storage_connection'].value).to eql('1DefaultEndpointsProtocol=https;AccountName=...')
|
181
181
|
expect(exploded_config[1]['threads']).to be == 9
|
182
|
-
expect(exploded_config[1]['codec']).to
|
182
|
+
expect(exploded_config[1]['codec'].class.to_s).to eq("LogStash::Codecs::JSON") # different between configs
|
183
183
|
expect(exploded_config[1]['consumer_group']).to eql('cg1') # override global
|
184
184
|
expect(exploded_config[1]['max_batch_size']).to be == 21 # filled from global
|
185
185
|
expect(exploded_config[1]['prefetch_count']).to be == 300 # default
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-azure_event_hubs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|