fluent-plugin-azurestorage-gen2 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +4 -0
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_azurestorage_gen2.rb +17 -8
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: eeea9ef451a8996e41202f49defb227905aeec16aab55f6f208617517365b929
|
4
|
+
data.tar.gz: 0c2027d20716c613c35ee0a325694225d138f0712fc4ca638962beef9397edea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65a5ffaea781a9e74f860f489e91f2fc0f0264a8998ffd694808688e48a826a5f3af5d02c1b07091565324c70ad7d6dcfbdfcbb7278d108eacd01089964cdf6c
|
7
|
+
data.tar.gz: 40f629211e74147a59dadf047809f1b743ef01437542b9c880b0a2fe51907dd182a2db49a90ba9c80c1aa3741a30b739d59452b31a195ffb839529559b6c3c70
|
data/README.md
CHANGED
@@ -318,6 +318,10 @@ Proxy username for Azure proxy endpoint (used only if `proxy_url` is filled)
|
|
318
318
|
|
319
319
|
Proxy password for Azure `proxy_username` (used only if `proxy_url` is filled)
|
320
320
|
|
321
|
+
### http_timeout_seconds
|
322
|
+
|
323
|
+
The time limit for HTTP request in seconds. Default: 120
|
324
|
+
|
321
325
|
## TODOs
|
322
326
|
|
323
327
|
- add storage key support
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.3
|
@@ -51,6 +51,7 @@ module Fluent::Plugin
|
|
51
51
|
config_param :proxy_password, :string, :default => nil, :secret => true
|
52
52
|
config_param :write_only, :bool, :default => false
|
53
53
|
config_param :upload_timestamp_format, :string, :default => '%H%M%S%L'
|
54
|
+
config_param :http_timeout_seconds, :integer, :default => 120
|
54
55
|
|
55
56
|
DEFAULT_FORMAT_TYPE = "out_file"
|
56
57
|
ACCESS_TOKEN_API_VERSION = "2018-02-01"
|
@@ -286,7 +287,8 @@ module Fluent::Plugin
|
|
286
287
|
end
|
287
288
|
req_opts = {
|
288
289
|
:params => params,
|
289
|
-
:headers => { Metadata: "true" }
|
290
|
+
:headers => { Metadata: "true" },
|
291
|
+
:timeout => @http_timeout_seconds
|
290
292
|
}
|
291
293
|
add_proxy_options(req_opts)
|
292
294
|
request = Typhoeus::Request.new("http://169.254.169.254/metadata/identity/oauth2/token", req_opts)
|
@@ -310,7 +312,8 @@ module Fluent::Plugin
|
|
310
312
|
req_opts = {
|
311
313
|
:params => params,
|
312
314
|
:body => content,
|
313
|
-
:headers => headers
|
315
|
+
:headers => headers,
|
316
|
+
:timeout => @http_timeout_seconds
|
314
317
|
}
|
315
318
|
add_proxy_options(req_opts)
|
316
319
|
request = Typhoeus::Request.new("https://login.microsoftonline.com/#{@azure_oauth_tenant_id}/oauth2/token", req_opts)
|
@@ -343,7 +346,8 @@ module Fluent::Plugin
|
|
343
346
|
req_opts = {
|
344
347
|
:method => :head,
|
345
348
|
:params => params,
|
346
|
-
:headers => headers
|
349
|
+
:headers => headers,
|
350
|
+
:timeout => @http_timeout_seconds
|
347
351
|
}
|
348
352
|
add_proxy_options(req_opts)
|
349
353
|
request = Typhoeus::Request.new("https://#{azure_storage_account}#{@url_domain_suffix}/#{@azure_container}", req_opts)
|
@@ -376,7 +380,8 @@ module Fluent::Plugin
|
|
376
380
|
req_opts = {
|
377
381
|
:method => :put,
|
378
382
|
:params => params,
|
379
|
-
:headers => headers
|
383
|
+
:headers => headers,
|
384
|
+
:timeout => @http_timeout_seconds
|
380
385
|
}
|
381
386
|
add_proxy_options(req_opts)
|
382
387
|
request = Typhoeus::Request.new("https://#{azure_storage_account}#{@url_domain_suffix}/#{@azure_container}", req_opts)
|
@@ -402,7 +407,8 @@ module Fluent::Plugin
|
|
402
407
|
req_opts = {
|
403
408
|
:method => :put,
|
404
409
|
:params => params,
|
405
|
-
:headers => headers
|
410
|
+
:headers => headers,
|
411
|
+
:timeout => @http_timeout_seconds
|
406
412
|
}
|
407
413
|
add_proxy_options(req_opts)
|
408
414
|
request = Typhoeus::Request.new("https://#{azure_storage_account}#{@url_domain_suffix}/#{@azure_container}#{blob_path}", req_opts)
|
@@ -432,7 +438,8 @@ module Fluent::Plugin
|
|
432
438
|
:method => :patch,
|
433
439
|
:params => params,
|
434
440
|
:headers => headers,
|
435
|
-
:body => content
|
441
|
+
:body => content,
|
442
|
+
:timeout => @http_timeout_seconds
|
436
443
|
}
|
437
444
|
add_proxy_options(req_opts)
|
438
445
|
request = Typhoeus::Request.new("https://#{azure_storage_account}#{@url_domain_suffix}/#{@azure_container}#{blob_path}", req_opts)
|
@@ -463,7 +470,8 @@ module Fluent::Plugin
|
|
463
470
|
req_opts = {
|
464
471
|
:method => :patch,
|
465
472
|
:params => params,
|
466
|
-
:headers => headers
|
473
|
+
:headers => headers,
|
474
|
+
:timeout => @http_timeout_seconds
|
467
475
|
}
|
468
476
|
add_proxy_options(req_opts)
|
469
477
|
request = Typhoeus::Request.new("https://#{azure_storage_account}#{@url_domain_suffix}/#{@azure_container}#{blob_path}", req_opts)
|
@@ -490,7 +498,8 @@ module Fluent::Plugin
|
|
490
498
|
req_opts = {
|
491
499
|
:method => :head,
|
492
500
|
:params => params,
|
493
|
-
:headers => headers
|
501
|
+
:headers => headers,
|
502
|
+
:timeout => @http_timeout_seconds
|
494
503
|
}
|
495
504
|
add_proxy_options(req_opts)
|
496
505
|
request = Typhoeus::Request.new("https://#{azure_storage_account}#{@url_domain_suffix}/#{@azure_container}#{blob_path}", req_opts)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-azurestorage-gen2
|
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
|
- Oliver Szabo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -225,8 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
- !ruby/object:Gem::Version
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
|
-
|
229
|
-
rubygems_version: 2.5.1
|
228
|
+
rubygems_version: 3.1.2
|
230
229
|
signing_key:
|
231
230
|
specification_version: 4
|
232
231
|
summary: Azure Storage output plugin for Fluentd event collector
|