fluent-plugin-kinesis 3.2.2 → 3.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +12 -11
- data/CHANGELOG.md +4 -0
- data/README.md +24 -0
- data/gemfiles/{Gemfile.fluentd-1.9.1 → Gemfile.fluentd-1.11.1} +1 -1
- data/gemfiles/Gemfile.td-agent-3.6.0 +31 -0
- data/gemfiles/Gemfile.td-agent-3.7.1 +31 -0
- data/gemfiles/Gemfile.td-agent-3.8.0 +31 -0
- data/lib/fluent/plugin/out_kinesis_firehose.rb +2 -1
- data/lib/fluent_plugin_kinesis/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1bd84d96b64e32b8aac649672adeb5333c7931cb7a7b5a4ec13cd6a8031f1be
|
4
|
+
data.tar.gz: 657ed567a713283fbc40c6ea7ed1fe7cc940f7898547e584aa4ed447fbfabdd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6da3c960496b64b446718ff79cd95523c3058372893e313a5049ca3fad51895a613bc06b5ce5e8dc6a71966b5c0dbe00fcfd9b0b5ff7438813f0be581efc1122
|
7
|
+
data.tar.gz: e5fff3586fd0f1519a9f686ccaca4212a45b30c9f7199fb82460bbd04d4a98c080fe1c93bf1dc33099b432dab9da4118a943c619e31069b082ce98ac366b80e2
|
data/.travis.yml
CHANGED
@@ -4,32 +4,33 @@ sudo: false
|
|
4
4
|
|
5
5
|
gemfile:
|
6
6
|
- Gemfile
|
7
|
-
- gemfiles/Gemfile.td-agent-3.
|
7
|
+
- gemfiles/Gemfile.td-agent-3.8.0
|
8
8
|
|
9
9
|
# Test with supported td-agent versions
|
10
|
-
# https://
|
10
|
+
# https://tddocs.atlassian.net/wiki/spaces/PD/pages/6291635/The+td-agent+ChangeLog
|
11
11
|
matrix:
|
12
12
|
include:
|
13
|
-
- rvm: 2.6.
|
14
|
-
|
15
|
-
|
13
|
+
- rvm: 2.6.6 # Latest supported Ruby / https://www.ruby-lang.org/en/downloads/
|
14
|
+
# Waiting protobuf support for Ruby 2.7 / https://github.com/protocolbuffers/protobuf/issues/7070
|
15
|
+
gemfile: gemfiles/Gemfile.fluentd-1.11.1 # Latest Fluentd / https://www.fluentd.org/download
|
16
|
+
- rvm: 2.3.0 # Oldest supported Ruby
|
16
17
|
gemfile: gemfiles/Gemfile.fluentd-0.14.22 # Oldest supported Fluentd
|
17
|
-
- rvm: 2.4.2 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.1.0/config/projects/td-agent3.rb#L20
|
18
|
-
gemfile: gemfiles/Gemfile.td-agent-3.1.0
|
19
18
|
- rvm: 2.4.2 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.1.1/config/projects/td-agent3.rb#L17
|
20
19
|
gemfile: gemfiles/Gemfile.td-agent-3.1.1
|
21
|
-
- rvm: 2.4.4 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.2.0/config/projects/td-agent3.rb#L22
|
22
|
-
gemfile: gemfiles/Gemfile.td-agent-3.2.0
|
23
20
|
- rvm: 2.4.4 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.2.1/config/projects/td-agent3.rb#L22
|
24
21
|
gemfile: gemfiles/Gemfile.td-agent-3.2.1
|
25
22
|
- rvm: 2.4.5 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.3.0/config/projects/td-agent3.rb#L22
|
26
23
|
gemfile: gemfiles/Gemfile.td-agent-3.3.0
|
27
24
|
- rvm: 2.4.6 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.4.1/config/projects/td-agent3.rb#L22
|
28
25
|
gemfile: gemfiles/Gemfile.td-agent-3.4.1
|
29
|
-
- rvm: 2.4.6 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.5.0/config/projects/td-agent3.rb#L22
|
30
|
-
gemfile: gemfiles/Gemfile.td-agent-3.5.0
|
31
26
|
- rvm: 2.4.9 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.5.1/config/projects/td-agent3.rb#L22
|
32
27
|
gemfile: gemfiles/Gemfile.td-agent-3.5.1
|
28
|
+
- rvm: 2.4.9 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.6.0/config/projects/td-agent3.rb#L22
|
29
|
+
gemfile: gemfiles/Gemfile.td-agent-3.6.0
|
30
|
+
- rvm: 2.4.10 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.7.1/config/projects/td-agent3.rb#L22
|
31
|
+
gemfile: gemfiles/Gemfile.td-agent-3.7.1
|
32
|
+
- rvm: 2.4.10 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.8.0/config/projects/td-agent3.rb#L22
|
33
|
+
gemfile: gemfiles/Gemfile.td-agent-3.8.0
|
33
34
|
fast_finish: true
|
34
35
|
|
35
36
|
script: bundle exec rake test
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 3.2.3
|
4
|
+
|
5
|
+
- Enhancement - Add placeholder support for delivery_stream_name of kinesis_firehose : [#203](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/203) [#204](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/204)
|
6
|
+
|
3
7
|
## 3.2.2
|
4
8
|
|
5
9
|
- Enhancement - Make more strict gem pinning to deal with google-protobuf requiring Ruby 2.5+ : [#199](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/199)
|
data/README.md
CHANGED
@@ -404,6 +404,30 @@ Here are `kinesis_firehose` specific configurations.
|
|
404
404
|
### delivery_stream_name
|
405
405
|
Name of the delivery stream to put data.
|
406
406
|
|
407
|
+
As of Fluentd v1, built-in placeholders are supported. Now, you can also use built-in placeholders for this parameter.
|
408
|
+
|
409
|
+
**NOTE:**
|
410
|
+
Built-in placeholders require target key information in your buffer section attributes.
|
411
|
+
|
412
|
+
e.g.)
|
413
|
+
|
414
|
+
When you specify the following `delivery_stream_name` configuration with built-in placeholder:
|
415
|
+
|
416
|
+
```aconf
|
417
|
+
delivery_stream_name "${$.kubernetes.annotations.kinesis_firehose_streams}"
|
418
|
+
```
|
419
|
+
|
420
|
+
you ought to specify the corresponding attributes in buffer section:
|
421
|
+
|
422
|
+
```aconf
|
423
|
+
# $.kubernetes.annotations.kinesis_firehose_streams needs to be set in buffer attributes
|
424
|
+
<buffer $.kubernetes.annotations.kinesis_firehose_streams>
|
425
|
+
# ...
|
426
|
+
</buffer>
|
427
|
+
```
|
428
|
+
|
429
|
+
For more details, refer [Placeholders section in the official Fluentd document](https://docs.fluentd.org/configuration/buffer-section#placeholders).
|
430
|
+
|
407
431
|
### append_new_line
|
408
432
|
Boolean. Default `true`. If it is enabled, the plugin adds new line character (`\n`) to each serialized record.
|
409
433
|
Before appending `\n`, plugin calls chomp and removes separator from the end of each record as [chomp_record](#chomp_record) is `true`. Therefore, you don't need to enable [chomp_record](#chomp_record) option when you use [kinesis_firehose](#kinesis_firehose) output with default configuration ([append_new_line](#append_new_line) is `true`). If you want to set [append_new_line](#append_new_line) `false`, you can choose [chomp_record](#chomp_record) `false` (default) or `true` (compatible format with plugin v2).
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2014-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
5
|
+
# may not use this file except in compliance with the License. A copy of
|
6
|
+
# the License is located at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# or in the "license" file accompanying this file. This file is
|
11
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
12
|
+
# ANY KIND, either express or implied. See the License for the specific
|
13
|
+
# language governing permissions and limitations under the License.
|
14
|
+
|
15
|
+
source 'https://rubygems.org'
|
16
|
+
|
17
|
+
# Specify your gem's dependencies in fluent-plugin-kinesis.gemspec
|
18
|
+
gemspec path: ".."
|
19
|
+
|
20
|
+
# Specify related gems for td-agent v3.6.0
|
21
|
+
# https://github.com/treasure-data/omnibus-td-agent/blob/v3.6.0/config/projects/td-agent3.rb#L27
|
22
|
+
gem "fluentd", "1.9.2"
|
23
|
+
# https://github.com/treasure-data/omnibus-td-agent/blob/v3.6.0/plugin_gems.rb#L16-L23
|
24
|
+
gem "jmespath", "1.4.0"
|
25
|
+
gem "aws-partitions", "1.273.0"
|
26
|
+
gem "aws-sigv4", "1.1.0"
|
27
|
+
gem "aws-sdk-core", "3.90.0"
|
28
|
+
gem "aws-sdk-kms", "1.29.0"
|
29
|
+
gem "aws-sdk-sqs", "1.23.1"
|
30
|
+
gem "aws-sdk-s3", "1.60.2"
|
31
|
+
gem "fluent-plugin-s3", "1.3.0"
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2014-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
5
|
+
# may not use this file except in compliance with the License. A copy of
|
6
|
+
# the License is located at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# or in the "license" file accompanying this file. This file is
|
11
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
12
|
+
# ANY KIND, either express or implied. See the License for the specific
|
13
|
+
# language governing permissions and limitations under the License.
|
14
|
+
|
15
|
+
source 'https://rubygems.org'
|
16
|
+
|
17
|
+
# Specify your gem's dependencies in fluent-plugin-kinesis.gemspec
|
18
|
+
gemspec path: ".."
|
19
|
+
|
20
|
+
# Specify related gems for td-agent v3.7.1
|
21
|
+
# https://github.com/treasure-data/omnibus-td-agent/blob/v3.7.1/config/projects/td-agent3.rb#L27
|
22
|
+
gem "fluentd", "1.10.2"
|
23
|
+
# https://github.com/treasure-data/omnibus-td-agent/blob/v3.7.1/plugin_gems.rb#L16-L23
|
24
|
+
gem "jmespath", "1.4.0"
|
25
|
+
gem "aws-partitions", "1.297.0"
|
26
|
+
gem "aws-sigv4", "1.1.1"
|
27
|
+
gem "aws-sdk-core", "3.94.0"
|
28
|
+
gem "aws-sdk-kms", "1.30.0"
|
29
|
+
gem "aws-sdk-sqs", "1.24.0"
|
30
|
+
gem "aws-sdk-s3", "1.63.0"
|
31
|
+
gem "fluent-plugin-s3", "1.3.1"
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#
|
2
|
+
# Copyright 2014-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
5
|
+
# may not use this file except in compliance with the License. A copy of
|
6
|
+
# the License is located at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# or in the "license" file accompanying this file. This file is
|
11
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
12
|
+
# ANY KIND, either express or implied. See the License for the specific
|
13
|
+
# language governing permissions and limitations under the License.
|
14
|
+
|
15
|
+
source 'https://rubygems.org'
|
16
|
+
|
17
|
+
# Specify your gem's dependencies in fluent-plugin-kinesis.gemspec
|
18
|
+
gemspec path: ".."
|
19
|
+
|
20
|
+
# Specify related gems for td-agent v3.8.0
|
21
|
+
# https://github.com/treasure-data/omnibus-td-agent/blob/v3.8.0/config/projects/td-agent3.rb#L27
|
22
|
+
gem "fluentd", "1.11.1"
|
23
|
+
# https://github.com/treasure-data/omnibus-td-agent/blob/v3.8.0/plugin_gems.rb#L16-L23
|
24
|
+
gem "jmespath", "1.4.0"
|
25
|
+
gem "aws-partitions", "1.332.0"
|
26
|
+
gem "aws-sigv4", "1.2.0"
|
27
|
+
gem "aws-sdk-core", "3.100.0"
|
28
|
+
gem "aws-sdk-kms", "1.34.1"
|
29
|
+
gem "aws-sdk-sqs", "1.28.0"
|
30
|
+
gem "aws-sdk-s3", "1.69.1"
|
31
|
+
gem "fluent-plugin-s3", "1.3.2"
|
@@ -44,12 +44,13 @@ module Fluent
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def write(chunk)
|
47
|
+
delivery_stream_name = extract_placeholders(@delivery_stream_name, chunk)
|
47
48
|
write_records_batch(chunk) do |batch|
|
48
49
|
records = batch.map{|(data)|
|
49
50
|
{ data: data }
|
50
51
|
}
|
51
52
|
client.put_record_batch(
|
52
|
-
delivery_stream_name:
|
53
|
+
delivery_stream_name: delivery_stream_name,
|
53
54
|
records: records,
|
54
55
|
)
|
55
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-kinesis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -290,7 +290,7 @@ files:
|
|
290
290
|
- benchmark/task.rake
|
291
291
|
- fluent-plugin-kinesis.gemspec
|
292
292
|
- gemfiles/Gemfile.fluentd-0.14.22
|
293
|
-
- gemfiles/Gemfile.fluentd-1.
|
293
|
+
- gemfiles/Gemfile.fluentd-1.11.1
|
294
294
|
- gemfiles/Gemfile.td-agent-3.1.0
|
295
295
|
- gemfiles/Gemfile.td-agent-3.1.1
|
296
296
|
- gemfiles/Gemfile.td-agent-3.2.0
|
@@ -299,6 +299,9 @@ files:
|
|
299
299
|
- gemfiles/Gemfile.td-agent-3.4.1
|
300
300
|
- gemfiles/Gemfile.td-agent-3.5.0
|
301
301
|
- gemfiles/Gemfile.td-agent-3.5.1
|
302
|
+
- gemfiles/Gemfile.td-agent-3.6.0
|
303
|
+
- gemfiles/Gemfile.td-agent-3.7.1
|
304
|
+
- gemfiles/Gemfile.td-agent-3.8.0
|
302
305
|
- lib/fluent/plugin/kinesis.rb
|
303
306
|
- lib/fluent/plugin/kinesis_helper/aggregator.rb
|
304
307
|
- lib/fluent/plugin/kinesis_helper/api.rb
|