logstash-input-azure_event_hubs 1.4.8 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/VERSION +1 -1
- data/lib/logstash/inputs/azure_event_hubs.rb +42 -22
- data/lib/logstash-input-azure_event_hubs.rb +33 -4
- data/spec/inputs/azure_event_hub_spec.rb +68 -36
- data/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-annotations/2.12.7/jackson-annotations-2.12.7.jar +0 -0
- data/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-core/2.12.7/jackson-core-2.12.7.jar +0 -0
- data/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-databind/2.12.7.1/jackson-databind-2.12.7.1.jar +0 -0
- data/vendor/jar-dependencies/com/fasterxml/jackson/datatype/jackson-datatype-joda/2.12.7/jackson-datatype-joda-2.12.7.jar +0 -0
- data/vendor/jar-dependencies/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar +0 -0
- data/vendor/jar-dependencies/com/google/code/gson/gson/2.8.9/gson-2.8.9.jar +0 -0
- data/vendor/jar-dependencies/com/google/guava/guava/32.0.1-jre/guava-32.0.1-jre.jar +0 -0
- data/vendor/jar-dependencies/com/microsoft/azure/adal4j/1.6.4/adal4j-1.6.4.jar +0 -0
- data/vendor/jar-dependencies/com/microsoft/azure/azure-annotations/1.10.0/azure-annotations-1.10.0.jar +0 -0
- data/vendor/jar-dependencies/com/microsoft/azure/azure-client-authentication/1.7.3/azure-client-authentication-1.7.3.jar +0 -0
- data/vendor/jar-dependencies/com/microsoft/azure/azure-client-runtime/1.7.3/azure-client-runtime-1.7.3.jar +0 -0
- data/vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs/3.3.0/azure-eventhubs-3.3.0.jar +0 -0
- data/vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs-eph/3.3.0/azure-eventhubs-eph-3.3.0.jar +0 -0
- data/vendor/jar-dependencies/com/microsoft/azure/azure-keyvault-core/1.2.4/azure-keyvault-core-1.2.4.jar +0 -0
- data/vendor/jar-dependencies/com/microsoft/rest/client-runtime/1.7.3/client-runtime-1.7.3.jar +0 -0
- data/vendor/jar-dependencies/com/nimbusds/lang-tag/1.7/lang-tag-1.7.jar +0 -0
- data/vendor/jar-dependencies/com/nimbusds/nimbus-jose-jwt/9.37.2/nimbus-jose-jwt-9.37.2.jar +0 -0
- data/vendor/jar-dependencies/com/nimbusds/oauth2-oidc-sdk/6.5/oauth2-oidc-sdk-6.5.jar +0 -0
- data/vendor/jar-dependencies/com/squareup/okhttp3/logging-interceptor/3.12.2/logging-interceptor-3.12.2.jar +0 -0
- data/vendor/jar-dependencies/com/squareup/okhttp3/okhttp/3.14.7/okhttp-3.14.7.jar +0 -0
- data/vendor/jar-dependencies/com/squareup/okhttp3/okhttp-urlconnection/3.12.2/okhttp-urlconnection-3.12.2.jar +0 -0
- data/vendor/jar-dependencies/com/squareup/okio/okio/1.17.6/okio-1.17.6.jar +0 -0
- data/vendor/jar-dependencies/com/squareup/retrofit2/adapter-rxjava/2.7.2/adapter-rxjava-2.7.2.jar +0 -0
- data/vendor/jar-dependencies/com/squareup/retrofit2/converter-jackson/2.7.2/converter-jackson-2.7.2.jar +0 -0
- data/vendor/jar-dependencies/com/squareup/retrofit2/retrofit/2.7.2/retrofit-2.7.2.jar +0 -0
- data/vendor/jar-dependencies/com/sun/mail/javax.mail/1.6.1/javax.mail-1.6.1.jar +0 -0
- data/vendor/jar-dependencies/commons-codec/commons-codec/1.11/commons-codec-1.11.jar +0 -0
- data/vendor/jar-dependencies/io/reactivex/rxjava/1.3.8/rxjava-1.3.8.jar +0 -0
- data/vendor/jar-dependencies/javax/activation/activation/1.1/activation-1.1.jar +0 -0
- data/vendor/jar-dependencies/net/minidev/json-smart/2.4.9/json-smart-2.4.9.jar +0 -0
- data/vendor/jar-dependencies/org/apache/qpid/proton-j/0.33.8/proton-j-0.33.8.jar +0 -0
- data/vendor/jar-dependencies/org/checkerframework/checker-compat-qual/2.0.0/checker-compat-qual-2.0.0.jar +0 -0
- data/vendor/jar-dependencies/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar +0 -0
- metadata +35 -6
- data/vendor/jar-dependencies/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar +0 -0
- data/vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs/2.3.2/azure-eventhubs-2.3.2.jar +0 -0
- data/vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs-eph/2.5.2/azure-eventhubs-eph-2.5.2.jar +0 -0
- data/vendor/jar-dependencies/org/apache/qpid/proton-j/0.33.9/proton-j-0.33.9.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 639751f75915a94cd8b1b35a7736317a23d471505bd399ad63abb7b8994e5348
|
4
|
+
data.tar.gz: c8d788acbff10038bacae242fdcfca4560b21413995a29da74346c05331ef41e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba716f7ce51e9230423a894fa99be446c4bf74612288bfd15734d92d0c283b8bf954fcbc9ec6914133b20f85542a3e1adc680dadbbd48387de9a40c9a8f120cd
|
7
|
+
data.tar.gz: 79d7e217c3f3de4f7074fb56c3de6dcfd60b5f7a468c5ca7e63ce7d58d70a4181d204f05d1977de8d5fcf3f9d8586c7ce2e1a68f9b1c938becf474538ae8c61f
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 1.5.0
|
2
|
+
- Updated Azure Event Hub client library to version 3.3.0 [#96](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/96)
|
3
|
+
|
4
|
+
## 1.4.9
|
5
|
+
- Fixed issue with `getHostContext` method accessibility, causing plugin not to be able to run [#93](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/93)
|
6
|
+
|
1
7
|
## 1.4.8
|
2
8
|
- Fixed connection placeholder replacements errors with Logstash `8.15.1` and `8.15.2` [#92](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/92)
|
3
9
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.5.0
|
@@ -401,30 +401,20 @@ class LogStash::Inputs::AzureEventHubs < LogStash::Inputs::Base
|
|
401
401
|
@logger.info("Event Hub #{event_hub_name} is initializing... ")
|
402
402
|
begin
|
403
403
|
if event_hub['storage_connection']
|
404
|
-
event_processor_host = EventProcessorHost.
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
404
|
+
event_processor_host = EventProcessorHost::EventProcessorHostBuilder.newBuilder(EventProcessorHost.createHostName('logstash'), event_hub['consumer_group'])
|
405
|
+
.useAzureStorageCheckpointLeaseManager(
|
406
|
+
event_hub['storage_connection'].value,
|
407
|
+
event_hub.fetch('storage_container', event_hub_name),
|
408
|
+
nil
|
409
|
+
)
|
410
|
+
.useEventHubConnectionString(
|
411
|
+
event_hub['event_hub_connections'].first.value, #there will only be one in this array by the time it gets here
|
412
|
+
)
|
413
|
+
.setExecutor(scheduled_executor_service)
|
414
|
+
.build
|
412
415
|
else
|
413
416
|
@logger.warn("You have NOT specified a `storage_connection_string` for #{event_hub_name}. This configuration is only supported for a single Logstash instance.")
|
414
|
-
|
415
|
-
lease_manager = InMemoryLeaseManager.new
|
416
|
-
event_processor_host = EventProcessorHost.new(
|
417
|
-
EventProcessorHost.createHostName('logstash'),
|
418
|
-
event_hub_name,
|
419
|
-
event_hub['consumer_group'],
|
420
|
-
event_hub['event_hub_connections'].first.value, #there will only be one in this array by the time it gets here
|
421
|
-
checkpoint_manager,
|
422
|
-
lease_manager,
|
423
|
-
scheduled_executor_service,
|
424
|
-
nil)
|
425
|
-
#using java_send to avoid naming conflicts with 'initialize' method
|
426
|
-
lease_manager.java_send :initialize, [HostContext], event_processor_host.getHostContext
|
427
|
-
checkpoint_manager.java_send :initialize, [HostContext], event_processor_host.getHostContext
|
417
|
+
event_processor_host = create_in_memory_event_processor_host(event_hub, event_hub_name, scheduled_executor_service)
|
428
418
|
end
|
429
419
|
options = EventProcessorOptions.new
|
430
420
|
options.setMaxBatchSize(max_batch_size)
|
@@ -496,4 +486,34 @@ class LogStash::Inputs::AzureEventHubs < LogStash::Inputs::Base
|
|
496
486
|
@logger.debug("interrupted while waiting to close executor service, this can generally be ignored", :exception => e, :backtrace => e.backtrace) if e
|
497
487
|
end
|
498
488
|
end
|
489
|
+
|
490
|
+
def create_in_memory_event_processor_host(event_hub, event_hub_name, scheduled_executor_service)
|
491
|
+
checkpoint_manager = InMemoryCheckpointManager.new
|
492
|
+
lease_manager = InMemoryLeaseManager.new
|
493
|
+
event_processor_host = EventProcessorHost::EventProcessorHostBuilder.newBuilder(EventProcessorHost.createHostName('logstash'), event_hub['consumer_group'])
|
494
|
+
.useUserCheckpointAndLeaseManagers(checkpoint_manager, lease_manager)
|
495
|
+
.useEventHubConnectionString(event_hub['event_hub_connections'].first.value) #there will only be one in this array by the time it gets here
|
496
|
+
.setExecutor(scheduled_executor_service)
|
497
|
+
.build
|
498
|
+
host_context = get_host_context(event_processor_host)
|
499
|
+
#using java_send to avoid naming conflicts with 'initialize' method
|
500
|
+
lease_manager.java_send :initialize, [HostContext], host_context
|
501
|
+
checkpoint_manager.java_send :initialize, [HostContext], host_context
|
502
|
+
event_processor_host
|
503
|
+
end
|
504
|
+
|
505
|
+
private
|
506
|
+
|
507
|
+
# This method is used to get around the fact that recent versions of jruby do not
|
508
|
+
# allow access to the package private protected method `getHostContext`
|
509
|
+
def get_host_context(event_processor_host)
|
510
|
+
call_private(event_processor_host, 'getHostContext')
|
511
|
+
end
|
512
|
+
|
513
|
+
def call_private(clazz, method)
|
514
|
+
method = clazz.java_class.declared_method(method)
|
515
|
+
method.accessible = true
|
516
|
+
method.invoke(clazz)
|
517
|
+
end
|
518
|
+
|
499
519
|
end
|
@@ -1,9 +1,38 @@
|
|
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', '
|
4
|
+
require_jar('com.microsoft.azure', 'azure-eventhubs', '3.3.0')
|
5
5
|
require_jar('com.microsoft.azure', 'qpid-proton-j-extensions', '1.2.4')
|
6
|
-
require_jar('com.microsoft.azure', 'azure-eventhubs-eph', '
|
6
|
+
require_jar('com.microsoft.azure', 'azure-eventhubs-eph', '3.3.0')
|
7
7
|
require_jar('com.microsoft.azure', 'azure-storage', '8.6.6')
|
8
|
-
require_jar('com.google.code.gson', 'gson', '2.
|
9
|
-
require_jar('org.apache.qpid', 'proton-j', '0.33.
|
8
|
+
require_jar('com.google.code.gson', 'gson', '2.8.9')
|
9
|
+
require_jar('org.apache.qpid', 'proton-j', '0.33.8')
|
10
|
+
require_jar('com.microsoft.azure', 'azure-keyvault-core', '1.2.4')
|
11
|
+
require_jar('com.microsoft.azure', 'adal4j', '1.6.4')
|
12
|
+
require_jar('com.microsoft.azure', 'azure-annotations', '1.10.0')
|
13
|
+
require_jar('com.microsoft.azure', 'azure-client-authentication', '1.7.3')
|
14
|
+
require_jar('com.microsoft.azure', 'azure-client-runtime', '1.7.3')
|
15
|
+
require_jar('com.microsoft.rest', 'client-runtime', '1.7.3')
|
16
|
+
require_jar('com.fasterxml.jackson.core', 'jackson-annotations', '2.12.7')
|
17
|
+
require_jar('com.fasterxml.jackson.core', 'jackson-core', '2.12.7')
|
18
|
+
require_jar('com.fasterxml.jackson.core', 'jackson-databind', '2.12.7.1')
|
19
|
+
require_jar('com.fasterxml.jackson.datatype', 'jackson-datatype-joda', '2.12.7')
|
20
|
+
require_jar('com.github.stephenc.jcip', 'jcip-annotations', '1.0-1')
|
21
|
+
require_jar('com.google.guava', 'guava', '32.0.1-jre')
|
22
|
+
require_jar('com.nimbusds', 'lang-tag', '1.7')
|
23
|
+
require_jar('com.nimbusds', 'nimbus-jose-jwt', '9.37.2')
|
24
|
+
require_jar('com.nimbusds', 'oauth2-oidc-sdk', '6.5')
|
25
|
+
require_jar('com.squareup.okhttp3', 'logging-interceptor', '3.12.2')
|
26
|
+
require_jar('com.squareup.okhttp3', 'okhttp-urlconnection', '3.12.2')
|
27
|
+
require_jar('com.squareup.okhttp3', 'okhttp', '3.14.7')
|
28
|
+
require_jar('com.squareup.okio', 'okio', '1.17.6')
|
29
|
+
require_jar('com.squareup.retrofit2', 'adapter-rxjava', '2.7.2')
|
30
|
+
require_jar('com.squareup.retrofit2', 'converter-jackson', '2.7.2')
|
31
|
+
require_jar('com.squareup.retrofit2', 'retrofit', '2.7.2')
|
32
|
+
require_jar('com.sun.mail', 'javax.mail', '1.6.1')
|
33
|
+
require_jar('commons-codec', 'commons-codec', '1.11')
|
34
|
+
require_jar('io.reactivex', 'rxjava', '1.3.8')
|
35
|
+
require_jar('javax.activation', 'activation', '1.1')
|
36
|
+
require_jar('net.minidev', 'json-smart', '2.4.9')
|
37
|
+
require_jar('org.checkerframework', 'checker-compat-qual', '2.0.0')
|
38
|
+
require_jar('org.codehaus.mojo', 'animal-sniffer-annotations', '1.14')
|
@@ -84,25 +84,39 @@ describe LogStash::Inputs::AzureEventHubs do
|
|
84
84
|
unregister_counter.incrementAndGet
|
85
85
|
completable_future
|
86
86
|
}
|
87
|
-
expect(EventProcessorHost).to receive(:new).at_most(2).times {|host_name, event_hub_name, consumer_group, event_hub_connection, storage_connection, container, executor|
|
88
|
-
case event_hub_name
|
89
|
-
when 'event_hub_name0'
|
90
87
|
|
91
|
-
|
88
|
+
build_step_mock = double("final build step")
|
89
|
+
expect(build_step_mock).to receive(:build).at_most(2).times.and_return(mock_host)
|
90
|
+
|
91
|
+
executor_step = double("executor step")
|
92
|
+
expect(executor_step).to receive(:setExecutor).at_most(2).times.and_return(build_step_mock)
|
93
|
+
|
94
|
+
mock_connection_string = double("connection string")
|
95
|
+
expect(mock_connection_string).to receive(:useEventHubConnectionString).at_most(2).times {|event_hub_connection|
|
96
|
+
case event_hub_connection
|
97
|
+
when /.*event_hub_name0$/
|
92
98
|
expect(event_hub_connection).to eql(config['event_hub_connections'][0])
|
93
|
-
|
99
|
+
when /.*event_hub_name1$/
|
100
|
+
expect(event_hub_connection).to eql(config['event_hub_connections'][1])
|
101
|
+
end
|
102
|
+
executor_step
|
103
|
+
}
|
94
104
|
|
105
|
+
mock_builder = double("storage and lease managers")
|
106
|
+
expect(mock_builder).to receive(:useAzureStorageCheckpointLeaseManager).at_most(2).times {|storage_connection_str, storage_container, storage_blob_prefix|
|
107
|
+
case storage_container
|
108
|
+
when 'event_hub_name0'
|
109
|
+
assertion_count.incrementAndGet
|
95
110
|
when 'event_hub_name1'
|
96
111
|
assertion_count.incrementAndGet
|
97
|
-
expect(host_name).to start_with('logstash')
|
98
|
-
expect(event_hub_connection).to eql(config['event_hub_connections'][1])
|
99
|
-
expect(container).to eql('event_hub_name1') # default
|
100
112
|
end
|
101
|
-
|
102
|
-
|
113
|
+
mock_connection_string
|
114
|
+
}
|
103
115
|
|
116
|
+
expect(EventProcessorHost::EventProcessorHostBuilder).to receive(:newBuilder).at_most(2).times {|host_name, consumer_group|
|
117
|
+
expect(host_name).to start_with('logstash')
|
104
118
|
host_counter.incrementAndGet
|
105
|
-
|
119
|
+
mock_builder
|
106
120
|
}
|
107
121
|
# signal the stop first since the run method blocks until stop is called.
|
108
122
|
input.do_stop
|
@@ -126,8 +140,6 @@ describe LogStash::Inputs::AzureEventHubs do
|
|
126
140
|
expect(exploded_config[0]['event_hub_connections'][0].value).to eql('Endpoint=sb://logstash/;SharedAccessKeyName=activity-log-readonly;SharedAccessKey=something;EntityPath=event_hub1')
|
127
141
|
end
|
128
142
|
end
|
129
|
-
|
130
|
-
|
131
143
|
end
|
132
144
|
|
133
145
|
describe "Advanced Config" do
|
@@ -207,10 +219,10 @@ describe LogStash::Inputs::AzureEventHubs do
|
|
207
219
|
register_counter = java.util.concurrent.atomic.AtomicInteger.new
|
208
220
|
unregister_counter = java.util.concurrent.atomic.AtomicInteger.new
|
209
221
|
assertion_count = java.util.concurrent.atomic.AtomicInteger.new
|
222
|
+
allow(input).to receive(:get_host_context) {mock_host_context}
|
210
223
|
allow_any_instance_of(InMemoryLeaseManager).to receive(:java_send)
|
211
224
|
allow_any_instance_of(InMemoryCheckpointManager).to receive(:java_send)
|
212
225
|
|
213
|
-
allow(mock_host).to receive(:getHostContext) {mock_host_context}
|
214
226
|
allow(mock_host_context).to receive(:getEventHubPath) {"foo"}
|
215
227
|
|
216
228
|
expect(mock_host).to receive(:registerEventProcessorFactory).at_most(3).times {
|
@@ -221,32 +233,45 @@ describe LogStash::Inputs::AzureEventHubs do
|
|
221
233
|
unregister_counter.incrementAndGet
|
222
234
|
completable_future
|
223
235
|
}
|
224
|
-
|
225
|
-
|
236
|
+
|
237
|
+
build_step_mock = double("final build step")
|
238
|
+
expect(build_step_mock).to receive(:build).at_most(3).times.and_return(mock_host)
|
239
|
+
|
240
|
+
executor_step = double("executor step")
|
241
|
+
expect(executor_step).to receive(:setExecutor).at_most(3).times.and_return(build_step_mock)
|
242
|
+
|
243
|
+
mock_connection_string = double("connection string")
|
244
|
+
expect(mock_connection_string).to receive(:useEventHubConnectionString).at_most(3).times {|event_hub_connection|
|
245
|
+
case event_hub_connection
|
246
|
+
when /.*event_hub_name0$/
|
247
|
+
expect(event_hub_connection).to eql(config['event_hubs'][0]['event_hub_name0']['event_hub_connections'][0].value)
|
248
|
+
when /.*event_hub_name1$/
|
249
|
+
expect(event_hub_connection).to eql(config['event_hubs'][1]['event_hub_name1']['event_hub_connections'][0].value)
|
250
|
+
end
|
251
|
+
executor_step
|
252
|
+
}
|
253
|
+
|
254
|
+
managers_mock = double("checkpoint and lease managers")
|
255
|
+
expect(managers_mock).to receive(:useUserCheckpointAndLeaseManagers).at_most(3).times {|checkpoint_mngr, lease_mngr|
|
256
|
+
assertion_count.incrementAndGet
|
257
|
+
mock_connection_string
|
258
|
+
}
|
259
|
+
expect(managers_mock).to receive(:useAzureStorageCheckpointLeaseManager).at_most(3).times {|storage_connection_str, storage_container, storage_blob_prefix|
|
260
|
+
case storage_container
|
226
261
|
when 'event_hub_name0'
|
227
|
-
if consumer_group.eql?('cg')
|
228
|
-
assertion_count.incrementAndGet
|
229
|
-
expect(host_name).to start_with('logstash')
|
230
|
-
expect(event_hub_connection).to eql(config['event_hubs'][0]['event_hub_name0']['event_hub_connections'][0].value)
|
231
|
-
expect(storage_connection).to eql(config['event_hubs'][0]['event_hub_name0']['storage_connection'].value)
|
232
|
-
expect(container).to eql('event_hub_name0') # default
|
233
|
-
elsif consumer_group.eql?('ls')
|
234
|
-
assertion_count.incrementAndGet
|
235
|
-
expect(event_hub_connection).to eql(config['event_hubs'][2]['event_hub_name0']['event_hub_connections'][0].value)
|
236
|
-
# in this mode, storage connection and container are replaced with in memory offset management
|
237
|
-
expect(storage_connection).to be_kind_of(InMemoryCheckpointManager)
|
238
|
-
expect(container).to be_kind_of(InMemoryLeaseManager)
|
239
|
-
end
|
240
|
-
when 'event_hub_name1'
|
241
262
|
assertion_count.incrementAndGet
|
242
|
-
|
243
|
-
|
244
|
-
expect(storage_connection).to eql(config['event_hubs'][1]['event_hub_name1']['storage_connection'].value)
|
245
|
-
expect(container).to eql(config['event_hubs'][1]['event_hub_name1']['storage_container'])
|
263
|
+
when 'alt_container'
|
264
|
+
assertion_count.incrementAndGet
|
246
265
|
end
|
266
|
+
mock_connection_string
|
267
|
+
}
|
268
|
+
|
269
|
+
expect(EventProcessorHost::EventProcessorHostBuilder).to receive(:newBuilder).at_most(3).times {|host_name, consumer_group|
|
270
|
+
expect(host_name).to start_with('logstash')
|
247
271
|
host_counter.incrementAndGet
|
248
|
-
|
272
|
+
managers_mock
|
249
273
|
}
|
274
|
+
|
250
275
|
# signal the stop first since the run method blocks until stop is called.
|
251
276
|
input.do_stop
|
252
277
|
input.run(mock_queue)
|
@@ -256,10 +281,17 @@ describe LogStash::Inputs::AzureEventHubs do
|
|
256
281
|
expect(assertion_count.get).to be == 3
|
257
282
|
end
|
258
283
|
|
284
|
+
it "can create an in memory EPH" do
|
285
|
+
#event_hub, event_hub_name, scheduled_executor_service
|
286
|
+
exploded_config = input.event_hubs_exploded
|
287
|
+
# During build step Azure libraries does a syntax check of EventHub connection string, so needs to be a pseudo real
|
288
|
+
exploded_config[0]['event_hub_connections'] = [::LogStash::Util::Password.new("Endpoint=sb://logstash.windows.net/;SharedAccessKeyName=activity-log-read-only;SharedAccessKey=blabla;EntityPath=ops-logs")]
|
289
|
+
input.create_in_memory_event_processor_host(exploded_config[0], exploded_config[0]['event_hubs'].first, nil)
|
290
|
+
end
|
259
291
|
end
|
260
292
|
|
261
293
|
describe "Bad Basic Config" do
|
262
|
-
describe "Offset
|
294
|
+
describe "Offset overwriting" do
|
263
295
|
let(:config) do
|
264
296
|
{
|
265
297
|
'event_hub_connections' => ['Endpoint=sb://...;EntityPath=event_hub_name0', 'Endpoint=sb://...;EntityPath=event_hub_name0'],
|
Binary file
|
data/vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-core/2.12.7/jackson-core-2.12.7.jar
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs/3.3.0/azure-eventhubs-3.3.0.jar
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/jar-dependencies/com/squareup/retrofit2/adapter-rxjava/2.7.2/adapter-rxjava-2.7.2.jar
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -103,12 +103,41 @@ files:
|
|
103
103
|
- lib/logstash/inputs/processor_factory.rb
|
104
104
|
- logstash-input-azure_event_hubs.gemspec
|
105
105
|
- spec/inputs/azure_event_hub_spec.rb
|
106
|
-
- vendor/jar-dependencies/com/
|
107
|
-
- vendor/jar-dependencies/com/
|
108
|
-
- vendor/jar-dependencies/com/
|
106
|
+
- vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-annotations/2.12.7/jackson-annotations-2.12.7.jar
|
107
|
+
- vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-core/2.12.7/jackson-core-2.12.7.jar
|
108
|
+
- vendor/jar-dependencies/com/fasterxml/jackson/core/jackson-databind/2.12.7.1/jackson-databind-2.12.7.1.jar
|
109
|
+
- vendor/jar-dependencies/com/fasterxml/jackson/datatype/jackson-datatype-joda/2.12.7/jackson-datatype-joda-2.12.7.jar
|
110
|
+
- vendor/jar-dependencies/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar
|
111
|
+
- vendor/jar-dependencies/com/google/code/gson/gson/2.8.9/gson-2.8.9.jar
|
112
|
+
- vendor/jar-dependencies/com/google/guava/guava/32.0.1-jre/guava-32.0.1-jre.jar
|
113
|
+
- vendor/jar-dependencies/com/microsoft/azure/adal4j/1.6.4/adal4j-1.6.4.jar
|
114
|
+
- vendor/jar-dependencies/com/microsoft/azure/azure-annotations/1.10.0/azure-annotations-1.10.0.jar
|
115
|
+
- vendor/jar-dependencies/com/microsoft/azure/azure-client-authentication/1.7.3/azure-client-authentication-1.7.3.jar
|
116
|
+
- vendor/jar-dependencies/com/microsoft/azure/azure-client-runtime/1.7.3/azure-client-runtime-1.7.3.jar
|
117
|
+
- vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs-eph/3.3.0/azure-eventhubs-eph-3.3.0.jar
|
118
|
+
- vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs/3.3.0/azure-eventhubs-3.3.0.jar
|
119
|
+
- vendor/jar-dependencies/com/microsoft/azure/azure-keyvault-core/1.2.4/azure-keyvault-core-1.2.4.jar
|
109
120
|
- vendor/jar-dependencies/com/microsoft/azure/azure-storage/8.6.6/azure-storage-8.6.6.jar
|
110
121
|
- 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/
|
122
|
+
- vendor/jar-dependencies/com/microsoft/rest/client-runtime/1.7.3/client-runtime-1.7.3.jar
|
123
|
+
- vendor/jar-dependencies/com/nimbusds/lang-tag/1.7/lang-tag-1.7.jar
|
124
|
+
- vendor/jar-dependencies/com/nimbusds/nimbus-jose-jwt/9.37.2/nimbus-jose-jwt-9.37.2.jar
|
125
|
+
- vendor/jar-dependencies/com/nimbusds/oauth2-oidc-sdk/6.5/oauth2-oidc-sdk-6.5.jar
|
126
|
+
- vendor/jar-dependencies/com/squareup/okhttp3/logging-interceptor/3.12.2/logging-interceptor-3.12.2.jar
|
127
|
+
- vendor/jar-dependencies/com/squareup/okhttp3/okhttp-urlconnection/3.12.2/okhttp-urlconnection-3.12.2.jar
|
128
|
+
- vendor/jar-dependencies/com/squareup/okhttp3/okhttp/3.14.7/okhttp-3.14.7.jar
|
129
|
+
- vendor/jar-dependencies/com/squareup/okio/okio/1.17.6/okio-1.17.6.jar
|
130
|
+
- vendor/jar-dependencies/com/squareup/retrofit2/adapter-rxjava/2.7.2/adapter-rxjava-2.7.2.jar
|
131
|
+
- vendor/jar-dependencies/com/squareup/retrofit2/converter-jackson/2.7.2/converter-jackson-2.7.2.jar
|
132
|
+
- vendor/jar-dependencies/com/squareup/retrofit2/retrofit/2.7.2/retrofit-2.7.2.jar
|
133
|
+
- vendor/jar-dependencies/com/sun/mail/javax.mail/1.6.1/javax.mail-1.6.1.jar
|
134
|
+
- vendor/jar-dependencies/commons-codec/commons-codec/1.11/commons-codec-1.11.jar
|
135
|
+
- vendor/jar-dependencies/io/reactivex/rxjava/1.3.8/rxjava-1.3.8.jar
|
136
|
+
- vendor/jar-dependencies/javax/activation/activation/1.1/activation-1.1.jar
|
137
|
+
- vendor/jar-dependencies/net/minidev/json-smart/2.4.9/json-smart-2.4.9.jar
|
138
|
+
- vendor/jar-dependencies/org/apache/qpid/proton-j/0.33.8/proton-j-0.33.8.jar
|
139
|
+
- vendor/jar-dependencies/org/checkerframework/checker-compat-qual/2.0.0/checker-compat-qual-2.0.0.jar
|
140
|
+
- vendor/jar-dependencies/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar
|
112
141
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
113
142
|
licenses:
|
114
143
|
- Apache-2.0
|
Binary file
|
data/vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs/2.3.2/azure-eventhubs-2.3.2.jar
DELETED
Binary file
|
Binary file
|
Binary file
|