fluent-plugin-s3-hubspot 1.0.0.rc5 → 1.0.0.rc5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_s3.rb +5 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.rc5
|
1
|
+
1.0.0.rc5.1
|
data/lib/fluent/plugin/out_s3.rb
CHANGED
@@ -111,7 +111,7 @@ module Fluent::Plugin
|
|
111
111
|
desc "Given a threshold to treat events as delay, output warning logs if delayed events were put into s3"
|
112
112
|
config_param :warn_for_delay, :time, default: nil
|
113
113
|
desc "Arbitrary S3 metadata headers to set for the object"
|
114
|
-
config_param :s3_metadata, :hash
|
114
|
+
config_param :s3_metadata, :hash, default: nil
|
115
115
|
|
116
116
|
DEFAULT_FORMAT_TYPE = "out_file"
|
117
117
|
|
@@ -281,7 +281,10 @@ module Fluent::Plugin
|
|
281
281
|
put_options[:sse_customer_key] = @sse_customer_key if @sse_customer_key
|
282
282
|
put_options[:sse_customer_key_md5] = @sse_customer_key_md5 if @sse_customer_key_md5
|
283
283
|
put_options[:acl] = @acl if @acl
|
284
|
-
|
284
|
+
|
285
|
+
if @s3_metadata
|
286
|
+
put_options[:metadata] = Hash[@s3_metadata.map {|k, v| k, extract_placeholders(v, metadata)}]
|
287
|
+
end
|
285
288
|
@bucket.object(s3path).put(put_options)
|
286
289
|
|
287
290
|
@values_for_s3_object_chunk.delete(chunk.unique_id)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-s3-hubspot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.rc5
|
4
|
+
version: 1.0.0.rc5.1
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-08-
|
13
|
+
date: 2017-08-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluentd
|