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 +4 -4
- data/ChangeLog +5 -0
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_s3.rb +9 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17add9c31857c6ce80237346cd1d1c9b04228c42
|
4
|
+
data.tar.gz: 8fc1df453d0a0ba8c2cee043c8ed5de2082ab12a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05a92ebf96c7817dd19bbb7804e58352eb502a02387e3d78de4743a2f2725ed13c97b6c00e8956d1c7db47a112d6f54888daf6e17a365a38cdb0e65cae5237c2
|
7
|
+
data.tar.gz: 24a208b805572239fe1844a8218a7b96c86585bddbc8fc160ddb610cd9bb1a979f212947ca126a6ee8d4d3e5d7d99e1b4aaa43a52c29699a6913b37e9b4c9707
|
data/ChangeLog
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.6
|
data/lib/fluent/plugin/out_s3.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2017-10-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|