fluent-plugin-s3 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/ChangeLog +6 -0
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_s3.rb +49 -1
- 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: e306f719d4a60dcbfbbc48db85ee403a9865b054
|
4
|
+
data.tar.gz: bef798f3e37dde338873bd3697b5388e04e032bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bc0a0c6daa1c762097aecc94828d59a79e15a9abf514938a0d3a4e412205c4681f2fc8235d40425f36adbbf25daf903a147c34426af7bbb9e9865625b0220d5
|
7
|
+
data.tar.gz: 6883277b81e496c02673038c3f83118050e7c38c2f42391b4168dc80b0a73889fd81906462ab1d3914036eece8a34f913cfec32fd4a0bf529ff4426c37111f91
|
data/.travis.yml
CHANGED
data/ChangeLog
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.5
|
data/lib/fluent/plugin/out_s3.rb
CHANGED
@@ -15,47 +15,95 @@ module Fluent
|
|
15
15
|
@compressor = nil
|
16
16
|
end
|
17
17
|
|
18
|
+
# For fluentd v0.12.16 or earlier
|
19
|
+
class << self
|
20
|
+
unless method_defined?(:desc)
|
21
|
+
def desc(description)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
unless Fluent::Config::ConfigureProxy.method_defined?(:desc)
|
26
|
+
Fluent::Config::ConfigureProxy.class_eval do
|
27
|
+
def desc(description)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
desc "Path prefix of the files on S3"
|
18
33
|
config_param :path, :string, :default => ""
|
34
|
+
desc "The Server-side encryption algorithm used when storing this object in S3 (AES256, aws:kms)"
|
19
35
|
config_param :use_server_side_encryption, :string, :default => nil
|
36
|
+
desc "AWS access key id"
|
20
37
|
config_param :aws_key_id, :string, :default => nil, :secret => true
|
38
|
+
desc "AWS secret key."
|
21
39
|
config_param :aws_sec_key, :string, :default => nil, :secret => true
|
22
40
|
config_section :assume_role_credentials, :multi => false do
|
41
|
+
desc "The Amazon Resource Name (ARN) of the role to assume"
|
23
42
|
config_param :role_arn, :string, :secret => true
|
43
|
+
desc "An identifier for the assumed role session"
|
24
44
|
config_param :role_session_name, :string
|
45
|
+
desc "An IAM policy in JSON format"
|
25
46
|
config_param :policy, :string, :default => nil
|
47
|
+
desc "The duration, in seconds, of the role session (900-3600)"
|
26
48
|
config_param :duration_seconds, :integer, :default => nil
|
49
|
+
desc "A unique identifier that is used by third parties when assuming roles in their customers' accounts."
|
27
50
|
config_param :external_id, :string, :default => nil, :secret => true
|
28
51
|
end
|
29
52
|
config_section :instance_profile_credentials, :multi => false do
|
53
|
+
desc "Number of times to retry when retrieving credentials"
|
30
54
|
config_param :retries, :integer, :default => nil
|
55
|
+
desc "IP address (default:169.254.169.254)"
|
31
56
|
config_param :ip_address, :string, :default => nil
|
57
|
+
desc "Port number (default:80)"
|
32
58
|
config_param :port, :integer, :default => nil
|
59
|
+
desc "Number of seconds to wait for the connection to open"
|
33
60
|
config_param :http_open_timeout, :float, :default => nil
|
61
|
+
desc "Number of seconds to wait for one block to be read"
|
34
62
|
config_param :http_read_timeout, :float, :default => nil
|
35
63
|
# config_param :delay, :integer or :proc, :default => nil
|
36
64
|
# config_param :http_degub_output, :io, :default => nil
|
37
65
|
end
|
38
66
|
config_section :shared_credentials, :multi => false do
|
67
|
+
desc "Path to the shared file. (default: $HOME/.aws/credentials)"
|
39
68
|
config_param :path, :string, :default => nil
|
69
|
+
desc "Profile name. Default to 'default' or ENV['AWS_PROFILE']"
|
40
70
|
config_param :profile_name, :string, :default => nil
|
41
71
|
end
|
72
|
+
desc "The number of attempts to load instance profile credentials from the EC2 metadata service using IAM role"
|
42
73
|
config_param :aws_iam_retries, :integer, :default => 5
|
74
|
+
desc "S3 bucket name"
|
43
75
|
config_param :s3_bucket, :string
|
76
|
+
desc "S3 region name"
|
44
77
|
config_param :s3_region, :string, :default => ENV["AWS_REGION"] || "us-east-1"
|
78
|
+
desc "Use 's3_region' instead"
|
45
79
|
config_param :s3_endpoint, :string, :default => nil
|
80
|
+
desc "The format of S3 object keys"
|
46
81
|
config_param :s3_object_key_format, :string, :default => "%{path}%{time_slice}_%{index}.%{file_extension}"
|
82
|
+
desc "If true, the bucket name is always left in the request URI and never moved to the host as a sub-domain"
|
47
83
|
config_param :force_path_style, :bool, :default => false
|
84
|
+
desc "Archive format on S3"
|
48
85
|
config_param :store_as, :string, :default => "gzip"
|
86
|
+
desc "Create S3 bucket if it does not exists"
|
49
87
|
config_param :auto_create_bucket, :bool, :default => true
|
88
|
+
desc "Check AWS key on start"
|
50
89
|
config_param :check_apikey_on_start, :bool, :default => true
|
90
|
+
desc "URI of proxy environment"
|
51
91
|
config_param :proxy_uri, :string, :default => nil
|
92
|
+
desc "Use S3 reduced redundancy storage for 33% cheaper pricing"
|
52
93
|
config_param :reduced_redundancy, :bool, :default => false
|
94
|
+
desc "The type of storage to use for the object(STANDARD,REDUCED_REDUNDANCY)"
|
53
95
|
config_param :storage_class, :string, :default => "STANDARD"
|
96
|
+
desc "Change one line format in the S3 object (out_file,json,ltsv,single_value)"
|
54
97
|
config_param :format, :string, :default => 'out_file'
|
98
|
+
desc "Permission for the object in S3"
|
55
99
|
config_param :acl, :string, :default => :private
|
100
|
+
desc "The length of `%{hex_random}` placeholder(4-16)"
|
56
101
|
config_param :hex_random_length, :integer, :default => 4
|
102
|
+
desc "Overwrite already existing path"
|
57
103
|
config_param :overwrite, :bool, :default => false
|
104
|
+
desc "Specifies the AWS KMS key ID to use for object encryption"
|
58
105
|
config_param :ssekms_key_id, :string, :default => nil, :secret => true
|
106
|
+
desc "AWS SDK uses MD5 for API request/response by default"
|
59
107
|
config_param :compute_checksums, :bool, :default => nil # use nil to follow SDK default configuration
|
60
108
|
|
61
109
|
attr_reader :bucket
|
@@ -214,7 +262,7 @@ module Fluent
|
|
214
262
|
end
|
215
263
|
|
216
264
|
def check_apikeys
|
217
|
-
@bucket.objects.first
|
265
|
+
@bucket.objects(:prefix => @path).first
|
218
266
|
rescue Aws::S3::Errors::NoSuchBucket
|
219
267
|
# ignore NoSuchBucket Error because ensure_bucket checks it.
|
220
268
|
rescue => e
|
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.6.
|
4
|
+
version: 0.6.5
|
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:
|
12
|
+
date: 2016-01-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
158
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.
|
159
|
+
rubygems_version: 2.2.2
|
160
160
|
signing_key:
|
161
161
|
specification_version: 4
|
162
162
|
summary: Amazon S3 output plugin for Fluentd event collector
|