logstash-output-azure_service_bus 0.3.5 → 0.3.8
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/README.md +1 -1
- data/lib/logstash/outputs/azure_service_bus.rb +4 -4
- data/logstash-output-azure_service_bus.gemspec +1 -1
- 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: 8ab4c90ed508519341c59e72adc96f862af3ad515b5292d43cb685920873ca17
|
4
|
+
data.tar.gz: 9d390bc1e2c38daf8ecde061a136200026a92f5fdfc539433b88d07439ced4a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d23e41a6d9aa4792a017b4c4aa917216476f6d769b7c96eb41ce3e8a6e3bbe058e6dfc59557a9bdc46268665f22bba56eef6fdf314de223619870e310c858715
|
7
|
+
data.tar.gz: 905cdaa68b575c6508de88f4bd7baf43ddc210b608184714a3d6830a39eccc0aa54bfc67f0820b078bcdee3e88dfb81c286ec7469e308c588d87cca1828223e7
|
data/README.md
CHANGED
@@ -44,4 +44,4 @@ output {
|
|
44
44
|
```
|
45
45
|
|
46
46
|
## Retry
|
47
|
-
This plugin will retry sending messages _indefinitely_ if Service Bus times out or returns
|
47
|
+
This plugin will retry sending messages _indefinitely_ if Service Bus times out or returns [certain bad responses](/lib/logstash/outputs/azure_service_bus.rb#L23). To avoid idempotence issues, you should enable duplicate detection on the destination queue or topic.
|
@@ -18,14 +18,14 @@ 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, Faraday::SSLError],
|
22
22
|
methods: [], # Empty -> all methods
|
23
|
-
retry_statuses: [401, 403, 404, 410, 429, 500], # https://docs.microsoft.com/en-us/rest/api/servicebus/send-message-batch#response-codes
|
23
|
+
retry_statuses: [401, 403, 404, 410, 429, 500, 503], # https://docs.microsoft.com/en-us/rest/api/servicebus/send-message-batch#response-codes
|
24
24
|
retry_block: lambda do |env, _options, _retries, exception|
|
25
25
|
if env.status.nil?
|
26
|
-
@logger.warn("Problem while sending message(s) to Service Bus
|
26
|
+
@logger.warn("Problem (#{exception.inspect}) while sending message(s) to Service Bus. Retrying...")
|
27
27
|
else
|
28
|
-
@logger.warn("Problem while sending message(s) to Service Bus
|
28
|
+
@logger.warn("Problem (HTTP #{env.status}) while sending message(s) to Service Bus. Retrying...")
|
29
29
|
if env.status == 401
|
30
30
|
refresh_access_token
|
31
31
|
env.request_headers['Authorization'] = "Bearer #{@access_token}"
|
@@ -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.8'
|
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.8
|
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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|