logstash-output-azure_service_bus 0.3.0 → 0.3.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00ca92128e4c0d68fdd5184c52a693b06b5b4dba3c6d4e788e125a4f3938c5ad
|
4
|
+
data.tar.gz: 4bf58b704a0aa7b30d30980f4af08b050dd6d26e01fa4d047038987a9f1ca4a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b36ba705d6c21811f6b9972faa894b9bd69bf5aa6ff71c2ee396c5c25ddc07ba185e31996abaaae2038aa3800ca0c3e8d08d0f759ec0a7a47123aa32a1a89ce8
|
7
|
+
data.tar.gz: fbb975e48bb80167b3a15d6da7801c32df42b04346b2df3bf0f17ecdd150a84c454911e1cfdb15a8fd481aab00d93e9b18d6eb29f42326c4eac8033f80c9983f
|
@@ -18,7 +18,7 @@ class LogStash::Outputs::AzureServiceBus < LogStash::Outputs::Base
|
|
18
18
|
interval: 1,
|
19
19
|
interval_randomness: 0.5,
|
20
20
|
backoff_factor: 2,
|
21
|
-
exceptions: [Faraday::ConnectionFailed, Faraday::TimeoutError, Faraday::RetriableResponse],
|
21
|
+
exceptions: [Faraday::ConnectionFailed, Faraday::TimeoutError, Faraday::RetriableResponse, Errno::ECONNRESET],
|
22
22
|
methods: [], # Empty -> all methods
|
23
23
|
retry_statuses: [401, 403, 404, 410, 429, 500], # https://docs.microsoft.com/en-us/rest/api/servicebus/send-message-batch#response-codes
|
24
24
|
retry_block: lambda do |env, _options, _retries, exception|
|
@@ -70,7 +70,7 @@ class LogStash::Outputs::AzureServiceBus < LogStash::Outputs::Base
|
|
70
70
|
# Hopefully we never make it here and "throw away" messages since we have an agressive retry strategy.
|
71
71
|
@logger.error("Error (#{e}) while sending message to Service Bus")
|
72
72
|
else
|
73
|
-
if response.status ==
|
73
|
+
if response.status == 201
|
74
74
|
@logger.debug("Sent #{messages.length} message(s) to Service Bus")
|
75
75
|
else
|
76
76
|
@logger.error("Error while sending message to Service Bus: HTTP #{response.status}")
|
@@ -80,7 +80,7 @@ class LogStash::Outputs::AzureServiceBus < LogStash::Outputs::Base
|
|
80
80
|
def refresh_access_token
|
81
81
|
@logger.info('Refreshing Azure access token')
|
82
82
|
begin
|
83
|
-
response = Faraday.get('http://169.254.169.254/metadata/identity/oauth2/token',
|
83
|
+
response = Faraday.get('http://169.254.169.254/metadata/identity/oauth2/token', { 'api-version' => '2018-02-01', 'resource' => 'https://servicebus.azure.net/' }) do |req|
|
84
84
|
req.headers = { 'Metadata' => 'true' }
|
85
85
|
req.options.timeout = 4
|
86
86
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-azure_service_bus'
|
3
|
-
s.version = '0.3.
|
3
|
+
s.version = '0.3.3'
|
4
4
|
s.licenses = ['Apache-2.0']
|
5
5
|
s.summary = 'Send Logstash messages to Azure Service Bus.'
|
6
6
|
s.homepage = 'https://github.com/gharryg/logstash-output-azure_service_bus'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-azure_service_bus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harrison Golden
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|