fluentd-plugin-kinesis-intuit 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ language: ruby
2
+ os: linux
3
+ sudo: false
4
+
5
+ matrix:
6
+ include:
7
+ - rvm: 2.4.1
8
+ gemfile: Gemfile
9
+ - rvm: 2.4.1
10
+ gemfile: gemfiles/Gemfile.fluentd-0.14.10
11
+ - rvm: 2.4.4 # https://github.com/treasure-data/omnibus-td-agent/blob/v3.2.0/config/projects/td-agent3.rb#L22
12
+ gemfile: gemfiles/Gemfile.td-agent-3.2.0
13
+
14
+ script: bundle exec rake test
@@ -0,0 +1,115 @@
1
+ # CHANGELOG
2
+
3
+ ## 2.1.1
4
+
5
+ - Bug - Fix require aws-sdk-core before requiring the aws related libraries [#140](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/140)
6
+
7
+ ## 2.1.0
8
+
9
+ - Feature - Added sts_http_proxy parameter to assume_role_credentials configuration [#136](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/136)
10
+
11
+ ## 2.0.1
12
+
13
+ - Bug - Fix AWS SDK conflict with s3 plugin [#131](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/131)
14
+
15
+ ## 2.0.0
16
+
17
+ - Feature - Add `kinesis_streams_aggregated` ouput plugin [#107](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/107)
18
+ - Feature - Support fluentd worker model [#104](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/104)
19
+ - Feature - Support AWS SDK for Ruby v3 [#102](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/102)
20
+ - Enhancement - Refactor class design [#103](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/103)
21
+ - Enhancement - More configuration for AssumeRole [#63](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/63)
22
+ - Enhancement - Refactor credentials helper [#94](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/94)
23
+ - Enhancement - Revisit backoff logic [#69](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/69)
24
+ - Enhancement - Support compressing output [#98](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/98)
25
+ - Enhancement - Support nanosecond time_key format [#124](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/124)
26
+ - License - Move back to Apache License Version 2.0
27
+
28
+ ## 1.3.0
29
+
30
+ - Feature - Log KPL stdout/err to logger [#129](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/129) [#130](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/130)
31
+
32
+ ## 1.2.0
33
+
34
+ - Feature - Add reduce_max_size_error_message configuration [#127](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/127)
35
+ - Bug fix - Fix empty batch error [#125](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/125)
36
+
37
+ ## 1.1.3
38
+
39
+ - Bug fix - Fix issues with fluentd 0.14.12 [#99](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/99)
40
+
41
+ ## 1.1.2
42
+
43
+ - Bug fix - Adjust credentials_provider for newer version of aws-ruby-sdk [#93](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/93)
44
+
45
+ ## 1.1.1
46
+
47
+ - Bug fix - Fix incompatibility for AWS SDK 2.5 [#80](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/80)
48
+ - Bug fix - Fix wrong logic for batch request [#81](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/81)
49
+
50
+ ## 1.1.0
51
+
52
+ - Feature - Derive stream name from fluentd tag for KPL [#67](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/67)
53
+ - Enhancement - Make http_proxy parameter secret [#64](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/64)
54
+ - Bug fix - Plugin incompatible with new fluentd release 0.14 [#70](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/70)
55
+ - Misc - Fix legacy test and reduce travis tests [#74](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/74)
56
+ - Misc - Some test, benchmark improvement [#74](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/74), [#75](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/75), [#76](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/76)
57
+
58
+ ## 1.0.1
59
+
60
+ - Bug fix - Instance profile credentials expiring [#58](https://github.com/awslabs/aws-fluent-plugin-kinesis/issues/58)
61
+
62
+ ## 1.0.0
63
+
64
+ To support Firehose and KPL, this was refactored and added more tests.
65
+
66
+ - Feature - Support Firehose
67
+ - Feature - Support KPL
68
+ - Feature - New parameters, such as formatter, data_key, reset_backoff_if_success, batch_request_max_count, batch_request_max_size, log_truncate_max_size
69
+
70
+ ## 0.4.0
71
+
72
+ - Feature - Add option to ensure Kinesis Stream connection. [#35](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/35)
73
+ - Feature - Add option to support zlib compression. [#39](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/39)
74
+
75
+ Note: We introduced [Semantic Versioning](http://semver.org/) here.
76
+
77
+ ## 0.3.6
78
+
79
+ - **Cross account access support**: Added support for cross account access for Amazon Kinesis stream. With this update, you can put reocrds to streams those are owned by other AWS account. This feature is achieved by [AssumeRole](http://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html).
80
+
81
+ ## 0.3.5
82
+
83
+ - **1MB record size limit**: Increased record size limit from 50KB to 1MB due to [Amazon Kinesis improvement.](http://aws.amazon.com/jp/about-aws/whats-new/2015/06/amazon-kinesis-announces-put-pricing-change-1mb-record-support-and-the-kinesis-producer-library/)
84
+ - **Switching IAM user support**: Added support for [shared credential file](http://docs.aws.amazon.com/ja_jp/AWSSdkDocsRuby/latest/DeveloperGuide/prog-basics-creds.html#creds-specify-provider).
85
+
86
+ ## 0.3.4
87
+
88
+ - **Multi-byte UTF-8 support**: We now support multi-byte UTF-8 by using *use_yajl* option.
89
+
90
+ ## 0.3.3
91
+
92
+ - **Security improvements**: Disabled logging `aws_key_id` and `aws_sec_key` into log file.
93
+
94
+ ## 0.3.2
95
+
96
+ - **http_proxy support**: Added HTTP proxy support.
97
+
98
+ ## 0.3.1
99
+
100
+ - **Fluentd v0.12 support**: We now support Fluentd v0.12.
101
+
102
+ ## 0.3.0
103
+
104
+ - **Throughput improvement**: Added support for [PutRecords API](http://docs.aws.amazon.com/kinesis/latest/APIReference/API_PutRecords.html) by default.
105
+ - **Bug fix**: Removed redundant Base64 encoding of data for each Kinesis record emitted. Applications consuming these records will need to be updated accordingly.
106
+
107
+ ## 0.2.0
108
+
109
+ - **Partition key randomization**: Added support for partition key randomization.
110
+ - **Throughput improvements**: Added support for spawning additional processes and threads to increase throughput to Amazon Kinesis.
111
+ - **AWS SDK for Ruby V2**: Added support for [AWS SDK for Ruby V2](https://github.com/aws/aws-sdk-core-ruby).
112
+
113
+ ## 0.1.0
114
+
115
+ - Release on Github
@@ -0,0 +1,4 @@
1
+ ## Code of Conduct
2
+ This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
3
+ For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
4
+ opensource-codeofconduct@amazon.com with any additional questions or comments.
@@ -0,0 +1,26 @@
1
+ # Community
2
+
3
+
4
+ ## Maintainers
5
+ Following are the maintainers of this project
6
+ [Lakshmi Prasanna M S](https://github.intuit.com/api/v3/users/lms)
7
+
8
+
9
+
10
+ ## Trusted Committers
11
+
12
+ Following are the Trusted Committers of this project
13
+ [Lakshmi Prasanna M S](https://github.intuit.com/api/v3/users/lms)
14
+
15
+
16
+
17
+ ## Slack Channel
18
+
19
+ - [#pi-idc-shankar-team](https://intuit-teams.slack.com/messages/G98QRJW5Q)
20
+
21
+
22
+ ## Jira
23
+
24
+ - [One Intuit Logging Support]
25
+ - Epic: Containerized Application Logging
26
+ - Product Owner : [None](https://github.intuit.com/api/v3/users/cloud-ops)
@@ -0,0 +1,160 @@
1
+ # Contributing Guidelines
2
+
3
+ This document contains information and guidelines about contributing to this project.
4
+ Please read it before you start participating.
5
+
6
+ ## Asking Questions
7
+
8
+ You can ask questions through our Slack channel [#pi-idc-shankar-team](https://intuit-teams.slack.com/messages/G98QRJW5Q) or by adding a [github issue](/issues).
9
+
10
+ ## Coding conventions
11
+
12
+ Please follow standard practice for the language you are adding.
13
+
14
+ ## Testing conventions
15
+
16
+ * Write tests to cover any new code
17
+ * Try to write code that is unit-testable, and write unit tests
18
+ * If appropriate also create integration tests
19
+
20
+ ## Branching conventions
21
+
22
+ * Keep branches short-lived
23
+ * Merge to master in small increments
24
+ * Delete branch after merging a PR to master
25
+
26
+ ## Commit-message conventions
27
+
28
+ * Include JIRA story or GitHub issue in commit subject
29
+ * Write a description of the changes made in the commit message
30
+
31
+ ## Submitting a Pull Request
32
+
33
+ You can submit a pull request to this repository at any time. Follow these guidelines to make it easier for you and the project maintainers to merge the PR to mainline:
34
+
35
+ If you are external to the team please start by forking the project. If you are on the team please coordinate with them to produce an appropriate branch.
36
+
37
+ 1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork,
38
+ and configure the remotes:
39
+
40
+ ```bash
41
+ # Clone your fork of the repo into the current directory
42
+ git clone git@github.intuit.com/cloud-logging/aws-fluent-plugin-kinesis-intuit.git
43
+ # Navigate to the newly cloned directory
44
+ cd oil-federated-search
45
+ # Assign the original repo to a remote called "upstream"
46
+ git remote add upstream https://github.intuit.com/cloud-logging/aws-fluent-plugin-kinesis-intuit.git
47
+ ```
48
+
49
+ 2. Run the unit tests. If you added new functionality, extend existing test cases or add new ones.
50
+
51
+ 3. If you cloned a while ago, get the latest changes from upstream:
52
+
53
+ ```bash
54
+ git checkout master
55
+ git pull upstream master
56
+ ```
57
+
58
+ 4. Create a new topic branch (off the main project development branch) to
59
+ contain your feature, change, or fix:
60
+
61
+ ```bash
62
+ git checkout -b <topic-branch-name>
63
+ ```
64
+
65
+ 5. Commit your changes in logical chunks. For any Git project, some good rules
66
+ for commit messages are
67
+ * the first line is commit summary, 50 characters or less,
68
+ * followed by an empty line
69
+ * followed by an explanation of the commit, wrapped to 72 characters.
70
+
71
+ The first line of a commit message becomes the **title** of a pull request on
72
+ GitHub, like the subject line of an email. Including the key info in the
73
+ first line will help us respond faster to your pull.
74
+
75
+ If your pull request has multiple commits which revise the same lines of
76
+ code, it is better to [squash](http://davidwalsh.name/squash-commits-git)
77
+ those commits together into one logical unit.
78
+
79
+ But you don't always have to squash &mdash; it is fine for a pull request to
80
+ contain multiple commits when there is a logical reason for the separation.
81
+
82
+ 6. Push your topic branch up to your fork:
83
+
84
+ ```bash
85
+ git push origin <topic-branch-name>
86
+ ```
87
+
88
+ 7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/)
89
+ with a clear title and description.
90
+
91
+ 8. After your Pull Request is away, you might want to get yourself back onto
92
+ `master` and delete the topic branch:
93
+
94
+ ```bash
95
+ git checkout master
96
+ git branch -D <topic-branch-name>
97
+ ```
98
+
99
+ Please refer to [this wiki](https://github.intuit.com/fabric-app-shells/mobile-shell-ios/wiki/How-to-develop-across-multiple-repositories) if you want to make changes across multiple repositories.
100
+
101
+ <sub><sup>Pull request instructions from [Sergey Alexandrov](https://github.com/taketwo)</sup></sub>
102
+
103
+ ## Reporting Other Issues
104
+
105
+ A great way to contribute to the project
106
+ is to send a detailed issue when you encounter an problem.
107
+ We always appreciate a well-written, thorough bug report.
108
+
109
+ Check that the project issues database
110
+ doesn't already include that problem or suggestion before submitting an issue.
111
+ If you find a match, add a quick "+1" or "I have this problem too."
112
+ Doing this helps prioritize the most common problems and requests.
113
+
114
+ When reporting issues, please include the following:
115
+
116
+ - Steps to reproduce
117
+ - Expected Results
118
+ - Actual Results
119
+ - Version if available
120
+ - Environment Setup
121
+
122
+ Please be descriptive in each and be sure that the report can easily be reproduced if possible.
123
+
124
+ This information will help us review and fix your issue faster.
125
+
126
+ ## Developer's Certificate of Origin
127
+
128
+ By making a contribution to this project, I certify that:
129
+
130
+ - (a) The contribution was created in whole or in part by me and I
131
+ have the right to submit it under the open source license
132
+ indicated in the file; or
133
+
134
+ - (b) The contribution is based upon previous work that, to the best
135
+ of my knowledge, is covered under an appropriate open source
136
+ license and I have the right under that license to submit that
137
+ work with modifications, whether created in whole or in part
138
+ by me, under the same open source license (unless I am
139
+ permitted to submit under a different license), as indicated
140
+ in the file; or
141
+
142
+ - (c) The contribution was provided directly to me by some other
143
+ person who certified (a), (b) or (c) and I have not modified
144
+ it.
145
+
146
+ - (d) I understand and agree that this project and the contribution
147
+ are public and that a record of the contribution (including all
148
+ personal information I submit with it, including my sign-off) is
149
+ maintained indefinitely and may be redistributed consistent with
150
+ this project or the open source license(s) involved.
151
+
152
+ ## Code of Conduct
153
+
154
+ The Code of Conduct governs how we behave in public or in private
155
+ whenever the project will be judged by our actions.
156
+ We expect it to be honored by everyone who contributes to this project.
157
+
158
+ ---
159
+
160
+ <sub><sup>*Some of the ideas and wording for the statements above were based on work by the [AlamoFire](https://github.com/Alamofire/Alamofire/blob/master/CONTRIBUTING.md) community. We commend them for their efforts to facilitate collaboration in their projects.*</sup></sub>
@@ -0,0 +1,6 @@
1
+ This file contains a list of people who have made large or regular contributions
2
+ to the Fluent Plugin for Amazon Kinesis Streams and Amazon Kinesis Firehose. Give them a special thanks!
3
+
4
+ Genki Sugawara
5
+ sgwr_dts@yahoo.co.jp
6
+ https://github.com/winebarrel
data/Gemfile ADDED
@@ -0,0 +1,18 @@
1
+ #
2
+ # Copyright 2014-2017 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
@@ -0,0 +1,112 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ fluent-plugin-kinesis-intuit (2.1.1)
5
+ aws-sdk-firehose (~> 1)
6
+ aws-sdk-kinesis (~> 1)
7
+ fluentd (>= 0.14.0, < 2)
8
+ google-protobuf (~> 3)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ addressable (2.5.2)
14
+ public_suffix (>= 2.0.2, < 4.0)
15
+ aws-eventstream (1.0.1)
16
+ aws-partitions (1.128.0)
17
+ aws-sdk-core (3.44.2)
18
+ aws-eventstream (~> 1.0)
19
+ aws-partitions (~> 1.0)
20
+ aws-sigv4 (~> 1.0)
21
+ jmespath (~> 1.0)
22
+ aws-sdk-firehose (1.11.0)
23
+ aws-sdk-core (~> 3, >= 3.39.0)
24
+ aws-sigv4 (~> 1.0)
25
+ aws-sdk-kinesis (1.9.0)
26
+ aws-sdk-core (~> 3, >= 3.39.0)
27
+ aws-sigv4 (~> 1.0)
28
+ aws-sigv4 (1.0.3)
29
+ binding_of_caller (0.8.0)
30
+ debug_inspector (>= 0.0.1)
31
+ byebug (10.0.2)
32
+ coderay (1.1.2)
33
+ cool.io (1.5.3)
34
+ crack (0.4.3)
35
+ safe_yaml (~> 1.0.0)
36
+ debug_inspector (0.0.3)
37
+ dig_rb (1.0.1)
38
+ fakefs (0.18.0)
39
+ fluentd (1.3.3)
40
+ cool.io (>= 1.4.5, < 2.0.0)
41
+ dig_rb (~> 1.0.0)
42
+ http_parser.rb (>= 0.5.1, < 0.7.0)
43
+ msgpack (>= 0.7.0, < 2.0.0)
44
+ serverengine (>= 2.0.4, < 3.0.0)
45
+ sigdump (~> 0.2.2)
46
+ strptime (>= 0.2.2, < 1.0.0)
47
+ tzinfo (~> 1.0)
48
+ tzinfo-data (~> 1.0)
49
+ yajl-ruby (~> 1.0)
50
+ google-protobuf (3.6.1)
51
+ hashdiff (0.3.8)
52
+ http_parser.rb (0.6.0)
53
+ jmespath (1.4.0)
54
+ metaclass (0.0.4)
55
+ method_source (0.9.2)
56
+ mocha (1.7.0)
57
+ metaclass (~> 0.0.1)
58
+ msgpack (1.2.4)
59
+ net-empty_port (0.0.2)
60
+ power_assert (1.1.3)
61
+ pry (0.12.2)
62
+ coderay (~> 1.1.0)
63
+ method_source (~> 0.9.0)
64
+ pry-byebug (3.6.0)
65
+ byebug (~> 10.0)
66
+ pry (~> 0.10)
67
+ pry-stack_explorer (0.4.9.3)
68
+ binding_of_caller (>= 0.7)
69
+ pry (>= 0.9.11)
70
+ public_suffix (3.0.3)
71
+ rake (10.5.0)
72
+ rr (1.2.1)
73
+ safe_yaml (1.0.4)
74
+ serverengine (2.1.0)
75
+ sigdump (~> 0.2.2)
76
+ sigdump (0.2.4)
77
+ strptime (0.2.3)
78
+ test-unit (3.2.9)
79
+ power_assert
80
+ test-unit-rr (1.0.5)
81
+ rr (>= 1.1.1)
82
+ test-unit (>= 2.5.2)
83
+ thread_safe (0.3.6)
84
+ tzinfo (1.2.5)
85
+ thread_safe (~> 0.1)
86
+ tzinfo-data (1.2018.9)
87
+ tzinfo (>= 1.0.0)
88
+ webmock (3.5.1)
89
+ addressable (>= 2.3.6)
90
+ crack (>= 0.3.2)
91
+ hashdiff
92
+ yajl-ruby (1.4.1)
93
+
94
+ PLATFORMS
95
+ ruby
96
+
97
+ DEPENDENCIES
98
+ bundler (~> 1.10)
99
+ fakefs (>= 0.8.1)
100
+ fluent-plugin-kinesis-intuit!
101
+ mocha (>= 1.1.0)
102
+ net-empty_port (>= 0.0.2)
103
+ pry (>= 0.10.1)
104
+ pry-byebug (>= 3.3.0)
105
+ pry-stack_explorer (>= 0.4.9.2)
106
+ rake (~> 10.0)
107
+ test-unit (>= 3.0.8)
108
+ test-unit-rr (>= 1.0.3)
109
+ webmock (>= 1.24.2)
110
+
111
+ BUNDLED WITH
112
+ 1.16.4