fluent-plugin-s3 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +6 -1
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_s3.rb +5 -1
- data/lib/fluent/plugin/s3_compressor_gzip_command.rb +1 -1
- data/lib/fluent/plugin/s3_compressor_lzma2.rb +1 -1
- data/lib/fluent/plugin/s3_compressor_lzo.rb +1 -1
- data/lib/fluent/plugin/s3_extractor_lzo.rb +1 -0
- data/test/test_out_s3.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 337c5d2366c1bc76613288e4a23a2f53a9192078
|
4
|
+
data.tar.gz: 50f1f97309df5a9ea20cea5da671b0cb451d2f0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 258e52f9de5e1966a7ae34229a7ccecee0e40a140f2837937a91218d4b85a6e7f66dc0d24f99fe8d3787e7a37cf49a0b2a22144132ba3a69579eb2ad907cfdc0
|
7
|
+
data.tar.gz: 410167969eddbc747058485898eea4c5048a1df14ff0ae4c3b06759cd931bd589cb31627adc767cd63c42279fab9f3cf3ffd3a4b53442dc173999f82f736d859
|
data/ChangeLog
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.3
|
data/lib/fluent/plugin/out_s3.rb
CHANGED
@@ -122,6 +122,8 @@ module Fluent
|
|
122
122
|
config_param :signature_version, :string, :default => nil # use nil to follow SDK default configuration
|
123
123
|
desc "Given a threshold to treat events as delay, output warning logs if delayed events were put into s3"
|
124
124
|
config_param :warn_for_delay, :time, :default => nil
|
125
|
+
desc "Directory for temporary files, instead of system temp directory."
|
126
|
+
config_param :tmp_dir, :string, :default => nil
|
125
127
|
|
126
128
|
attr_reader :bucket
|
127
129
|
|
@@ -253,7 +255,7 @@ module Fluent
|
|
253
255
|
}
|
254
256
|
end
|
255
257
|
|
256
|
-
tmp = Tempfile.new("s3-")
|
258
|
+
tmp = Tempfile.new("s3-", @tmp_dir)
|
257
259
|
tmp.binmode
|
258
260
|
begin
|
259
261
|
@compressor.compress(chunk, tmp)
|
@@ -403,6 +405,8 @@ module Fluent
|
|
403
405
|
class Compressor
|
404
406
|
include Configurable
|
405
407
|
|
408
|
+
config_param :tmp_dir, :string, :default => nil
|
409
|
+
|
406
410
|
def initialize(opts = {})
|
407
411
|
super()
|
408
412
|
@buffer_type = opts[:buffer_type]
|
data/test/test_out_s3.rb
CHANGED
@@ -452,7 +452,7 @@ EOC
|
|
452
452
|
s3obj.exists? { false }
|
453
453
|
|
454
454
|
tempfile = File.new(s3_local_file_path, "w")
|
455
|
-
stub(Tempfile).new("s3-") { tempfile }
|
455
|
+
stub(Tempfile).new("s3-", nil) { tempfile }
|
456
456
|
s3obj.put(:body => tempfile,
|
457
457
|
:content_type => "application/x-gzip",
|
458
458
|
:storage_class => "STANDARD")
|
@@ -484,7 +484,7 @@ EOC
|
|
484
484
|
:client => @s3_client))
|
485
485
|
|
486
486
|
tempfile = File.new(s3_local_file_path, "w")
|
487
|
-
stub(Tempfile).new("s3-") { tempfile }
|
487
|
+
stub(Tempfile).new("s3-", nil) { tempfile }
|
488
488
|
s3obj.put(:body => tempfile,
|
489
489
|
:content_type => "application/x-gzip",
|
490
490
|
:storage_class => "STANDARD")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-05-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
171
|
rubyforge_project:
|
172
|
-
rubygems_version: 2.6.
|
172
|
+
rubygems_version: 2.6.11
|
173
173
|
signing_key:
|
174
174
|
specification_version: 4
|
175
175
|
summary: Amazon S3 output plugin for Fluentd event collector
|