fluent-plugin-s3 0.8.5 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df85fb4977d84a85925b04c8ae08a04f4864ed28
4
- data.tar.gz: f66abd428acd9da5642939f6ed37a1d888f793aa
3
+ metadata.gz: 17add9c31857c6ce80237346cd1d1c9b04228c42
4
+ data.tar.gz: 8fc1df453d0a0ba8c2cee043c8ed5de2082ab12a
5
5
  SHA512:
6
- metadata.gz: 806553c25324c89e7add78e39ec695bec12f4ca5fd74e8900e115775dee509d02cdf4e3e7ff26bd15b4c56dc71c968ab5360af24d1f3eb3607b81d3390dc656e
7
- data.tar.gz: f29eea5549311a8522fb98dbf2e04ceb9803d7bd9056e50633bf24757eb6eaeaa150ed0772d26deb14daeba14ae40f97ae85162fb6e28fbd92b9d9169ca92a42
6
+ metadata.gz: 05a92ebf96c7817dd19bbb7804e58352eb502a02387e3d78de4743a2f2725ed13c97b6c00e8956d1c7db47a112d6f54888daf6e17a365a38cdb0e65cae5237c2
7
+ data.tar.gz: 24a208b805572239fe1844a8218a7b96c86585bddbc8fc160ddb610cd9bb1a979f212947ca126a6ee8d4d3e5d7d99e1b4aaa43a52c29699a6913b37e9b4c9707
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Release 0.8.6 - 2017/10/11
2
+
3
+ * out_s3: specified s3_object_key_format is applied when check_object is false
4
+
5
+
1
6
  Release 0.8.5 - 2017/08/04
2
7
 
3
8
  * out_s3: Fix typo error in debug log message
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.5
1
+ 0.8.6
@@ -168,6 +168,14 @@ module Fluent
168
168
 
169
169
  @path = process_deprecated_placeholders(@path)
170
170
  @s3_object_key_format = process_deprecated_placeholders(@s3_object_key_format)
171
+ if !@check_object
172
+ if conf.has_key?('s3_object_key_format')
173
+ log.warn "Set 'check_object false' and s3_object_key_format is specified. Check s3_object_key_format is unique in each write. If not, existing file will be overwritten."
174
+ else
175
+ log.warn "Set 'check_object false' and s3_object_key_format is not specified. Use '%{path}/%{date_slice}_%{hms_slice}.%{file_extension}' for s3_object_key_format"
176
+ @s3_object_key_format = "%{path}/%{date_slice}_%{hms_slice}.%{file_extension}"
177
+ end
178
+ end
171
179
  @values_for_s3_object_chunk = {}
172
180
  end
173
181
 
@@ -192,10 +200,6 @@ module Fluent
192
200
  check_apikeys if @check_apikey_on_start
193
201
  ensure_bucket if @check_bucket
194
202
 
195
- if !@check_object
196
- @s3_object_key_format = "%{path}/%{date_slice}_%{hms_slice}.%{file_extension}"
197
- end
198
-
199
203
  super
200
204
  end
201
205
 
@@ -246,6 +250,7 @@ module Fluent
246
250
 
247
251
  values_for_s3_object_key = {
248
252
  "path" => @path_slicer.call(@path),
253
+ "time_slice" => chunk.key,
249
254
  "date_slice" => chunk.key,
250
255
  "file_extension" => @compressor.ext,
251
256
  "hms_slice" => hms_slicer,
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.5
4
+ version: 0.8.6
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-08-03 00:00:00.000000000 Z
12
+ date: 2017-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd