logstash-input-azure_event_hubs 1.2.2 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/LICENSE +2 -1
  4. data/VERSION +1 -1
  5. data/lib/logstash/inputs/azure_event_hubs.rb +5 -1
  6. data/lib/logstash/inputs/processor.rb +1 -0
  7. data/lib/logstash-input-azure_event_hubs.rb +7 -7
  8. data/spec/inputs/azure_event_hub_spec.rb +2 -2
  9. data/vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs/2.3.2/azure-eventhubs-2.3.2.jar +0 -0
  10. data/vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs-eph/{2.4.0/azure-eventhubs-eph-2.4.0.jar → 2.5.2/azure-eventhubs-eph-2.5.2.jar} +0 -0
  11. data/vendor/jar-dependencies/com/microsoft/azure/azure-storage/8.6.6/azure-storage-8.6.6.jar +0 -0
  12. data/vendor/jar-dependencies/com/microsoft/azure/qpid-proton-j-extensions/1.2.4/qpid-proton-j-extensions-1.2.4.jar +0 -0
  13. data/vendor/jar-dependencies/org/apache/logging/log4j/log4j-api/2.15.0/log4j-api-2.15.0.jar +0 -0
  14. data/vendor/jar-dependencies/org/apache/logging/log4j/log4j-slf4j-impl/2.15.0/log4j-slf4j-impl-2.15.0.jar +0 -0
  15. data/vendor/jar-dependencies/org/apache/qpid/proton-j/0.33.9/proton-j-0.33.9.jar +0 -0
  16. metadata +10 -11
  17. data/vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs/2.2.0/azure-eventhubs-2.2.0.jar +0 -0
  18. data/vendor/jar-dependencies/com/microsoft/azure/azure-storage/8.0.0/azure-storage-8.0.0.jar +0 -0
  19. data/vendor/jar-dependencies/com/microsoft/azure/qpid-proton-j-extensions/1.1.0/qpid-proton-j-extensions-1.1.0.jar +0 -0
  20. data/vendor/jar-dependencies/org/apache/logging/log4j/log4j-api/2.9.1/log4j-api-2.9.1.jar +0 -0
  21. data/vendor/jar-dependencies/org/apache/logging/log4j/log4j-slf4j-impl/2.9.1/log4j-slf4j-impl-2.9.1.jar +0 -0
  22. data/vendor/jar-dependencies/org/apache/qpid/proton-j/0.33.3/proton-j-0.33.3.jar +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a7f87055eb3012bebd2fbe41eb12130c8ce91aa4853d56493e77de3e3eb1d32
4
- data.tar.gz: 7d7be20be2704119f1cbe6e84d3f290d258a6063bdd4bea366dfab24d9be9af5
3
+ metadata.gz: 19a25727df6bc548a4df97cf4408a711fea64979da39cbfd634e0e3ad2af5370
4
+ data.tar.gz: 02b064d76f7519abb3db9ca59490f5b40aff8ac5f43446699fb7f55c63a301db
5
5
  SHA512:
6
- metadata.gz: 4153e44540964e59f5ca7a57389f418f1283c0dd679df9c7895be67527ad6b8214fd762940c06c191b924a187114ed435e87eb9bf58f7d57f11f96131688a788
7
- data.tar.gz: 00c56ff144753427ee5c1e3b2dcc29dde057efee95434c2bbd0bb6736d3144add8f9d01df6d0efff9f0e084c73d698ed6f8cfeb1cecfb36acb5e501c2eb78f55
6
+ metadata.gz: 59fc2af3961aae68987bb72476fe9dddde460a3a7447456566053d5c2c2d8044525ee73a8ebd13b7c435c658689dc6d685794b4c84a3649918d632f9aa09ec2a
7
+ data.tar.gz: b34b4d1224d7395b43e255c3c28728196a7465890da847ac02d2206a91cc3b56bfe5099c6d372195b89e049b4da664795881bd662f7d4fd175f305c2828d81f9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## 1.4.1
2
+ - Update log4j dependencies [#71](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/71)
3
+ - Fixed Gradle's script to use Gradle 7 [#69](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/69)
4
+
5
+ ## 1.4.0
6
+ - Updated the minor version of Azure SDK and other dependencies to ensure users of this plugin get upstream fixes and improvements [#67](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/67)
7
+
8
+ ## 1.3.0
9
+ - Add EventHub `user properties` in `@metadata` object [#66](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/66)
10
+
11
+ ## 1.2.3
12
+ - Fixed missing configuration of `prefetch_count` and `receive_timeout` [#61](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/61)
13
+
1
14
  ## 1.2.2
2
15
  - Refactor: scope and review global java_imports [#57](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/57)
3
16
 
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 [yyyy] [name of copyright owner]
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.2
1
+ 1.4.1
@@ -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, :pre_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'
@@ -48,6 +48,7 @@ module LogStash
48
48
  event.set("[@metadata][azure_event_hubs][sequence]", payload.getSystemProperties.getSequenceNumber)
49
49
  event.set("[@metadata][azure_event_hubs][timestamp]",payload.getSystemProperties.getEnqueuedTime.getEpochSecond)
50
50
  event.set("[@metadata][azure_event_hubs][event_size]", bytes.size)
51
+ event.set("[@metadata][azure_event_hubs][user_properties]", payload.getProperties)
51
52
  end
52
53
  @queue << event
53
54
  if @checkpoint_interval > 0
@@ -1,11 +1,11 @@
1
1
  # AUTOGENERATED BY THE GRADLE SCRIPT. DO NOT EDIT.
2
2
 
3
3
  require 'jar_dependencies'
4
+ require_jar('com.microsoft.azure', 'azure-eventhubs', '2.3.2')
5
+ require_jar('com.microsoft.azure', 'qpid-proton-j-extensions', '1.2.4')
6
+ require_jar('com.microsoft.azure', 'azure-eventhubs-eph', '2.5.2')
7
+ require_jar('com.microsoft.azure', 'azure-storage', '8.6.6')
4
8
  require_jar('com.google.code.gson', 'gson', '2.8.5')
5
- require_jar('org.apache.qpid', 'proton-j', '0.33.3')
6
- require_jar('org.apache.logging.log4j', 'log4j-slf4j-impl', '2.9.1')
7
- require_jar('com.microsoft.azure', 'azure-eventhubs', '2.2.0')
8
- require_jar('com.microsoft.azure', 'qpid-proton-j-extensions', '1.1.0')
9
- require_jar('com.microsoft.azure', 'azure-eventhubs-eph', '2.4.0')
10
- require_jar('com.microsoft.azure', 'azure-storage', '8.0.0')
11
- require_jar('org.apache.logging.log4j', 'log4j-api', '2.9.1')
9
+ require_jar('org.apache.qpid', 'proton-j', '0.33.9')
10
+ require_jar('org.apache.logging.log4j', 'log4j-api', '2.15.0')
11
+ require_jar('org.apache.logging.log4j', 'log4j-slf4j-impl', '2.15.0')
@@ -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 be_a_kind_of(LogStash::Codecs::Plain)
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 be_a_kind_of(LogStash::Codecs::JSON) # different between configs
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.2
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-16 00:00:00.000000000 Z
11
+ date: 2021-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -104,13 +104,13 @@ files:
104
104
  - logstash-input-azure_event_hubs.gemspec
105
105
  - spec/inputs/azure_event_hub_spec.rb
106
106
  - vendor/jar-dependencies/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar
107
- - vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs-eph/2.4.0/azure-eventhubs-eph-2.4.0.jar
108
- - vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs/2.2.0/azure-eventhubs-2.2.0.jar
109
- - vendor/jar-dependencies/com/microsoft/azure/azure-storage/8.0.0/azure-storage-8.0.0.jar
110
- - vendor/jar-dependencies/com/microsoft/azure/qpid-proton-j-extensions/1.1.0/qpid-proton-j-extensions-1.1.0.jar
111
- - vendor/jar-dependencies/org/apache/logging/log4j/log4j-api/2.9.1/log4j-api-2.9.1.jar
112
- - vendor/jar-dependencies/org/apache/logging/log4j/log4j-slf4j-impl/2.9.1/log4j-slf4j-impl-2.9.1.jar
113
- - vendor/jar-dependencies/org/apache/qpid/proton-j/0.33.3/proton-j-0.33.3.jar
107
+ - vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs-eph/2.5.2/azure-eventhubs-eph-2.5.2.jar
108
+ - vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs/2.3.2/azure-eventhubs-2.3.2.jar
109
+ - vendor/jar-dependencies/com/microsoft/azure/azure-storage/8.6.6/azure-storage-8.6.6.jar
110
+ - vendor/jar-dependencies/com/microsoft/azure/qpid-proton-j-extensions/1.2.4/qpid-proton-j-extensions-1.2.4.jar
111
+ - vendor/jar-dependencies/org/apache/logging/log4j/log4j-api/2.15.0/log4j-api-2.15.0.jar
112
+ - vendor/jar-dependencies/org/apache/logging/log4j/log4j-slf4j-impl/2.15.0/log4j-slf4j-impl-2.15.0.jar
113
+ - vendor/jar-dependencies/org/apache/qpid/proton-j/0.33.9/proton-j-0.33.9.jar
114
114
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
115
115
  licenses:
116
116
  - Apache-2.0
@@ -133,8 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0'
135
135
  requirements: []
136
- rubyforge_project:
137
- rubygems_version: 2.6.13
136
+ rubygems_version: 3.1.6
138
137
  signing_key:
139
138
  specification_version: 4
140
139
  summary: Consumes events from Azure Event Hubs for use with Logstash