fluent-plugin-s3 1.1.3 → 1.1.4

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
- SHA1:
3
- metadata.gz: 16e7bfdfa2c8a9ac640bc5aab2f4f340ff764874
4
- data.tar.gz: a4711544ff30e4312474b85a730aa00fb8cd3c1b
2
+ SHA256:
3
+ metadata.gz: 164bdc30d36c459b718ba23deb8e4a2ba92e7975649f1ceac6f463080b4664e1
4
+ data.tar.gz: c1d226ea3a67ae5aec3bae2f76b64e61bcde12554a2132416056a97826a40dc0
5
5
  SHA512:
6
- metadata.gz: d084d89f1fc8ba64405c417e2f71d5a2316d47de454be606d28b54ad9a52d567e09e401a5f1bf72268c638d37e5b17812e4c3d85be6221081c6921fe2160adc1
7
- data.tar.gz: fdd479ee6b6bbae6a0d4bd2e25817d70b6f82fe2d8ab87ca835b4b803cd86f7b3432266bdd4ed099edcda8501d11d790818ed4336740f79126cc87d621c4031a
6
+ metadata.gz: c6d62d8f88fd09611eb5ecec1157574da96190b625f1794106f68bee4e57fb0dda317547330a0649c66f4d7224cf953e3395fb170f481b5b5a5d242eb318c69a
7
+ data.tar.gz: 031dac994ab6a51424114077e8ae0006617953c44de05f75a3035b6c0de2ff3b67f16c6f706e6ab658cf6fd99a623e8d7d30ceceaef74d2678556d99be824868
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Release 1.1.4 - 2018/07/22
2
+
3
+ * out_s3: Support time_slice in `check_object false`. date_slice is kept for backward compatibility
4
+
1
5
  Release 1.1.3 - 2018/04/15
2
6
 
3
7
  * in_s3: Fixed extracting gzip's multiple stream.
data/README.md CHANGED
@@ -299,8 +299,8 @@ When it is false,
299
299
  Check object before creation if it exists or not. Default is true.
300
300
 
301
301
  When it is false,
302
- s3_object_key_format will be %{path}%{date_slice}_%{time_slice}.%{file_extension}
303
- where, time_slice will be in hhmmss format, so that each object will be unique.
302
+ s3_object_key_format will be %{path}%{time_slice}_%{hms_slice}.%{file_extension} by default
303
+ where, hms_slice will be time-slice in hhmmss format, so that each object will be unique.
304
304
  Example object name, assuming it is created on 2016/16/11 3:30:54 PM
305
305
  20161611_153054.txt (extension can be anything as per user's choice)
306
306
 
@@ -696,7 +696,7 @@ on EC2 instances.
696
696
 
697
697
  ## Use your (de)compression algorithm
698
698
 
699
- s3 plugin has plugabble compression mechanizm like Fleuntd's input / output
699
+ s3 plugin has pluggable compression mechanizm like Fluentd's input / output
700
700
  plugin. If you set 'store_as xxx', `out_s3` plugin searches
701
701
  `fluent/plugin/s3_compressor_xxx.rb` and `in_s3` plugin searches
702
702
  `fluent/plugin/s3_extractor_xxx.rb`. You can define your (de)compression with
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.3
1
+ 1.1.4
@@ -178,8 +178,8 @@ module Fluent::Plugin
178
178
  if conf.has_key?('s3_object_key_format')
179
179
  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."
180
180
  else
181
- 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"
182
- @s3_object_key_format = "%{path}/%{date_slice}_%{hms_slice}.%{file_extension}"
181
+ log.warn "Set 'check_object false' and s3_object_key_format is not specified. Use '%{path}/%{time_slice}_%{hms_slice}.%{file_extension}' for s3_object_key_format"
182
+ @s3_object_key_format = "%{path}/%{time_slice}_%{hms_slice}.%{file_extension}"
183
183
  end
184
184
  end
185
185
 
@@ -280,7 +280,8 @@ module Fluent::Plugin
280
280
  "%{file_extension}" => @compressor.ext,
281
281
  }
282
282
  values_for_s3_object_key_post = {
283
- "%{date_slice}" => time_slice,
283
+ "%{date_slice}" => time_slice, # For backward compatibility
284
+ "%{time_slice}" => time_slice,
284
285
  "%{hms_slice}" => hms_slicer,
285
286
  }.merge!(@values_for_s3_object_chunk[chunk.unique_id])
286
287
  values_for_s3_object_key_post["%{uuid_flush}".freeze] = uuid_random if @uuid_flush_enabled
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: 1.1.3
4
+ version: 1.1.4
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: 2018-04-15 00:00:00.000000000 Z
12
+ date: 2018-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  requirements: []
165
165
  rubyforge_project:
166
- rubygems_version: 2.6.14.1
166
+ rubygems_version: 2.7.6
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: Amazon S3 output plugin for Fluentd event collector