logstash-input-dynamodb 1.0.4-java → 2.0.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +18 -33
- data/Gemfile +0 -2
- data/LICENSE.txt +0 -201
- data/NOTICE.txt +0 -14
- data/README.md +0 -177
- data/Rakefile +0 -7
- data/lib/logstash-input-dynamodb_jars.rb +0 -25
- data/lib/logstash/inputs/DynamoDBLogParser.rb +0 -166
- data/lib/logstash/inputs/LogStashRecordProcessor.rb +0 -68
- data/lib/logstash/inputs/LogStashRecordProcessorFactory.rb +0 -43
- data/lib/logstash/inputs/dynamodb.rb +0 -341
- data/logstash-input-dynamodb.gemspec +0 -40
- data/spec/inputs/dynamodb_spec.rb +0 -198
- data/spec/log_parser_spec.rb +0 -63
- data/spec/record_processor_and_factory_spec.rb +0 -70
- data/spec/spec_helper.rb +0 -134
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 931f14b3205e36e47c3de1014e501bef3f4a196d
|
4
|
+
data.tar.gz: f8b2af89fff7e0048241ab03886c65bc1257e52d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 577b7c61c227b78af5ecfc5f4b37bed0a2bc18d173e33539b9c9b05b1a8b7d6f8acda3938a0698f6e0878cc10463c13552bb26c4477ec7cd83209712d33ad41b
|
7
|
+
data.tar.gz: 986ad4eedf34a0c9e803d669c92dd2968ad8481ab000bd5e683520be578c2c90a14efb3e22473648a19f4335e163680e061cedca7af1be4f9df7ac32e78ecebd
|
metadata
CHANGED
@@ -1,43 +1,49 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-dynamodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Amazon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
|
-
- - "
|
16
|
+
- - ">="
|
17
17
|
- !ruby/object:Gem::Version
|
18
18
|
version: 2.0.0
|
19
|
+
- - "<"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.0.0
|
19
22
|
name: logstash-core
|
20
23
|
prerelease: false
|
21
24
|
type: :runtime
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 2.0.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.0.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
requirement: !ruby/object:Gem::Requirement
|
29
35
|
requirements:
|
30
|
-
- - "
|
36
|
+
- - ">="
|
31
37
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
38
|
+
version: '0'
|
33
39
|
name: logstash-codec-json
|
34
40
|
prerelease: false
|
35
41
|
type: :runtime
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
|
-
- - "
|
44
|
+
- - ">="
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
46
|
+
version: '0'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
requirement: !ruby/object:Gem::Requirement
|
43
49
|
requirements:
|
@@ -99,22 +105,7 @@ email: dynamodb-interest@amazon.com
|
|
99
105
|
executables: []
|
100
106
|
extensions: []
|
101
107
|
extra_rdoc_files: []
|
102
|
-
files:
|
103
|
-
- Gemfile
|
104
|
-
- LICENSE.txt
|
105
|
-
- NOTICE.txt
|
106
|
-
- README.md
|
107
|
-
- Rakefile
|
108
|
-
- lib/logstash-input-dynamodb_jars.rb
|
109
|
-
- lib/logstash/inputs/DynamoDBLogParser.rb
|
110
|
-
- lib/logstash/inputs/LogStashRecordProcessor.rb
|
111
|
-
- lib/logstash/inputs/LogStashRecordProcessorFactory.rb
|
112
|
-
- lib/logstash/inputs/dynamodb.rb
|
113
|
-
- logstash-input-dynamodb.gemspec
|
114
|
-
- spec/inputs/dynamodb_spec.rb
|
115
|
-
- spec/log_parser_spec.rb
|
116
|
-
- spec/record_processor_and_factory_spec.rb
|
117
|
-
- spec/spec_helper.rb
|
108
|
+
files: []
|
118
109
|
homepage: https://github.com/logstash-plugins/logstash-input-dynamodb
|
119
110
|
licenses:
|
120
111
|
- Apache License (2.0)
|
@@ -136,12 +127,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
127
|
- !ruby/object:Gem::Version
|
137
128
|
version: '0'
|
138
129
|
requirements:
|
139
|
-
- jar 'org.apache.httpcomponents:httpclient', '4.5.2'
|
140
130
|
- jar 'com.amazonaws:amazon-kinesis-client', '1.6.1'
|
141
131
|
- jar 'log4j:log4j', '1.2.17'
|
142
|
-
- jar 'com.amazonaws:aws-java-sdk-dynamodb', '1.10.
|
143
|
-
- jar 'com.amazonaws:aws-java-sdk-core', '1.10.
|
144
|
-
- jar 'com.amazonaws:aws-java-sdk-kinesis', '1.10.60'
|
132
|
+
- jar 'com.amazonaws:aws-java-sdk-dynamodb', '1.10.27'
|
133
|
+
- jar 'com.amazonaws:aws-java-sdk-core', '1.10.27'
|
145
134
|
- jar 'com.amazonaws:dynamodb-import-export-tool', '1.0.0'
|
146
135
|
- jar 'commons-logging:commons-logging', '1.1.3'
|
147
136
|
- jar 'com.amazonaws:dynamodb-streams-kinesis-adapter', '1.0.2'
|
@@ -151,8 +140,4 @@ rubygems_version: 2.4.8
|
|
151
140
|
signing_key:
|
152
141
|
specification_version: 4
|
153
142
|
summary: This input plugin scans a specified DynamoDB table and then reads changes to a DynamoDB table from the associated DynamoDB Stream.
|
154
|
-
test_files:
|
155
|
-
- spec/inputs/dynamodb_spec.rb
|
156
|
-
- spec/log_parser_spec.rb
|
157
|
-
- spec/record_processor_and_factory_spec.rb
|
158
|
-
- spec/spec_helper.rb
|
143
|
+
test_files: []
|
data/Gemfile
DELETED
data/LICENSE.txt
DELETED
@@ -1,201 +0,0 @@
|
|
1
|
-
Apache License
|
2
|
-
Version 2.0, January 2004
|
3
|
-
http://www.apache.org/licenses/
|
4
|
-
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
-
|
7
|
-
1. Definitions.
|
8
|
-
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
-
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
-
the copyright owner that is granting the License.
|
14
|
-
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
-
other entities that control, are controlled by, or are under common
|
17
|
-
control with that entity. For the purposes of this definition,
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
19
|
-
direction or management of such entity, whether by contract or
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
-
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
-
exercising permissions granted by this License.
|
25
|
-
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
27
|
-
including but not limited to software source code, documentation
|
28
|
-
source, and configuration files.
|
29
|
-
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
31
|
-
transformation or translation of a Source form, including but
|
32
|
-
not limited to compiled object code, generated documentation,
|
33
|
-
and conversions to other media types.
|
34
|
-
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
36
|
-
Object form, made available under the License, as indicated by a
|
37
|
-
copyright notice that is included in or attached to the work
|
38
|
-
(an example is provided in the Appendix below).
|
39
|
-
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
-
the Work and Derivative Works thereof.
|
47
|
-
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
49
|
-
the original version of the Work and any modifications or additions
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
-
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
64
|
-
subsequently incorporated within the Work.
|
65
|
-
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
72
|
-
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
-
where such license applies only to those patent claims licensable
|
79
|
-
by such Contributor that are necessarily infringed by their
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
82
|
-
institute patent litigation against any entity (including a
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
85
|
-
or contributory patent infringement, then any patent licenses
|
86
|
-
granted to You under this License for that Work shall terminate
|
87
|
-
as of the date such litigation is filed.
|
88
|
-
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
91
|
-
modifications, and in Source or Object form, provided that You
|
92
|
-
meet the following conditions:
|
93
|
-
|
94
|
-
(a) You must give any other recipients of the Work or
|
95
|
-
Derivative Works a copy of this License; and
|
96
|
-
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
98
|
-
stating that You changed the files; and
|
99
|
-
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
102
|
-
attribution notices from the Source form of the Work,
|
103
|
-
excluding those notices that do not pertain to any part of
|
104
|
-
the Derivative Works; and
|
105
|
-
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
108
|
-
include a readable copy of the attribution notices contained
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
111
|
-
of the following places: within a NOTICE text file distributed
|
112
|
-
as part of the Derivative Works; within the Source form or
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
114
|
-
within a display generated by the Derivative Works, if and
|
115
|
-
wherever such third-party notices normally appear. The contents
|
116
|
-
of the NOTICE file are for informational purposes only and
|
117
|
-
do not modify the License. You may add Your own attribution
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
120
|
-
that such additional attribution notices cannot be construed
|
121
|
-
as modifying the License.
|
122
|
-
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
124
|
-
may provide additional or different license terms and conditions
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
128
|
-
the conditions stated in this License.
|
129
|
-
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
133
|
-
this License, without any additional terms or conditions.
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
-
the terms of any separate license agreement you may have executed
|
136
|
-
with Licensor regarding such Contributions.
|
137
|
-
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
140
|
-
except as required for reasonable and customary use in describing the
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
-
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
152
|
-
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
158
|
-
incidental, or consequential damages of any character arising as a
|
159
|
-
result of this License or out of the use or inability to use the
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
162
|
-
other commercial damages or losses), even if such Contributor
|
163
|
-
has been advised of the possibility of such damages.
|
164
|
-
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
-
or other liability obligations and/or rights consistent with this
|
169
|
-
License. However, in accepting such obligations, You may act only
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
174
|
-
of your accepting any such warranty or additional liability.
|
175
|
-
|
176
|
-
END OF TERMS AND CONDITIONS
|
177
|
-
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
179
|
-
|
180
|
-
To apply the Apache License to your work, attach the following
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
-
replaced with your own identifying information. (Don't include
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
184
|
-
comment syntax for the file format. We also recommend that a
|
185
|
-
file or class name and description of purpose be included on the
|
186
|
-
same "printed page" as the copyright notice for easier
|
187
|
-
identification within third-party archives.
|
188
|
-
|
189
|
-
Copyright [2015] [name of copyright owner]
|
190
|
-
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
-
you may not use this file except in compliance with the License.
|
193
|
-
You may obtain a copy of the License at
|
194
|
-
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
-
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
-
See the License for the specific language governing permissions and
|
201
|
-
limitations under the License.
|
data/NOTICE.txt
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
Logstash-input-DynamoDB Plugin
|
2
|
-
Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
3
|
-
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
you may not use this file except in compliance with the License.
|
6
|
-
You may obtain a copy of the License at
|
7
|
-
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
See the License for the specific language governing permissions and
|
14
|
-
limitations under the License.
|
data/README.md
DELETED
@@ -1,177 +0,0 @@
|
|
1
|
-
# Logstash Plugin
|
2
|
-
|
3
|
-
NOTE: CONFIGURATION ON RUNNING THE INPUT PLUGIN FOR DYNAMODB LOOK AT THE BOTTOM
|
4
|
-
|
5
|
-
This is a plugin for [Logstash](https://github.com/elasticsearch/logstash).
|
6
|
-
|
7
|
-
It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
|
8
|
-
|
9
|
-
## Documentation
|
10
|
-
|
11
|
-
Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elasticsearch.org/guide/en/logstash/current/).
|
12
|
-
|
13
|
-
- For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
|
14
|
-
- For more asciidoc formatting tips, see the excellent reference here https://github.com/elasticsearch/docs#asciidoc-guide
|
15
|
-
|
16
|
-
## Need Help?
|
17
|
-
|
18
|
-
Need help? Try #logstash on freenode IRC or the logstash-users@googlegroups.com mailing list.
|
19
|
-
|
20
|
-
## Developing
|
21
|
-
|
22
|
-
### 1. Plugin Developement and Testing
|
23
|
-
|
24
|
-
#### Code
|
25
|
-
- To get started, you'll need JRuby with the Bundler gem installed.
|
26
|
-
|
27
|
-
- Create a new plugin or clone and existing from the GitHub [logstash-plugins](https://github.com/logstash-plugins) organization. We also provide [example plugins](https://github.com/logstash-plugins?query=example).
|
28
|
-
|
29
|
-
- Install dependencies
|
30
|
-
```sh
|
31
|
-
bundle install
|
32
|
-
```
|
33
|
-
|
34
|
-
#### Test
|
35
|
-
|
36
|
-
- Update your dependencies
|
37
|
-
|
38
|
-
#####TODO: NOT DONE YET
|
39
|
-
```sh
|
40
|
-
bundle install
|
41
|
-
```
|
42
|
-
|
43
|
-
- Run tests
|
44
|
-
|
45
|
-
```sh
|
46
|
-
bundle exec rspec
|
47
|
-
```
|
48
|
-
|
49
|
-
### 2. Running your unpublished Plugin in Logstash
|
50
|
-
|
51
|
-
#### 2.1 Run in a local Logstash clone
|
52
|
-
|
53
|
-
##### TODO need to figure out the local plugin path. For now use 'gem build logstash-input-dynamodbstreams.gemspec' and add the absolute path of this the gem created to the Gemfile of the logstash app.
|
54
|
-
- Edit Logstash `Gemfile` and add the local plugin path, for example:
|
55
|
-
```ruby
|
56
|
-
gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
|
57
|
-
```
|
58
|
-
- Install plugin
|
59
|
-
```sh
|
60
|
-
bin/plugin install --no-verify
|
61
|
-
```
|
62
|
-
- Run Logstash with your plugin
|
63
|
-
```sh
|
64
|
-
bin/logstash -e 'filter {awesome {}}'
|
65
|
-
```
|
66
|
-
At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.
|
67
|
-
|
68
|
-
#### 2.2 Run in an installed Logstash
|
69
|
-
|
70
|
-
You can use the same **2.1** method to run your plugin in an installed Logstash by editing its `Gemfile` and pointing the `:path` to your local plugin development directory or you can build the gem and install it using:
|
71
|
-
|
72
|
-
- Install all dependencies of the gem
|
73
|
-
```sh
|
74
|
-
bundle install
|
75
|
-
```
|
76
|
-
|
77
|
-
- Build your plugin gem
|
78
|
-
```sh
|
79
|
-
gem build logstash-filter-awesome.gemspec
|
80
|
-
```
|
81
|
-
|
82
|
-
- Install the plugin from the Logstash home
|
83
|
-
```sh
|
84
|
-
bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
|
85
|
-
```
|
86
|
-
- Start Logstash and proceed to test the plugin
|
87
|
-
|
88
|
-
## Contributing
|
89
|
-
|
90
|
-
All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.
|
91
|
-
|
92
|
-
Programming is not a required skill. Whatever you've seen about open source and maintainers or community members saying "send patches or die" - you will not see that here.
|
93
|
-
|
94
|
-
It is more important to the community that you are able to contribute.
|
95
|
-
|
96
|
-
For more information about contributing, see the [CONTRIBUTING](https://github.com/elasticsearch/logstash/blob/master/CONTRIBUTING.md) file.
|
97
|
-
|
98
|
-
#Configuration for DynamoDB Logstash plugin
|
99
|
-
|
100
|
-
To run the DynamoDB Logstash plugin simply add a configuration following the below documentation.
|
101
|
-
|
102
|
-
An example configuration:
|
103
|
-
input {
|
104
|
-
dynamodb {
|
105
|
-
table_name => "My_DynamoDB_Table"
|
106
|
-
endpoint => "dynamodb.us-west-1.amazonaws.com"
|
107
|
-
streams_endpoint => "streams.dynamodb.us-west-1.amazonaws.com"
|
108
|
-
aws_access_key_id => "my aws access key"
|
109
|
-
aws_secret_access_key => "my aws secret access key"
|
110
|
-
perform_scan => true
|
111
|
-
perform_stream => true
|
112
|
-
read_ops => 100
|
113
|
-
number_of_write_threads => 8
|
114
|
-
number_of_scan_threads => 8
|
115
|
-
log_format => "plain"
|
116
|
-
view_type => "new_and_old_images"
|
117
|
-
}
|
118
|
-
}
|
119
|
-
|
120
|
-
#Configuration Parameters
|
121
|
-
|
122
|
-
config :<variable name>, <type of expected variable>, :required => <true if required to run>, :default => <default value of configuration>
|
123
|
-
|
124
|
-
# The name of the table to copy and stream through Logstash
|
125
|
-
config :table_name, :validate => :string, :required => true
|
126
|
-
|
127
|
-
# Configuration for what information from the scan and streams to include in the log.
|
128
|
-
# keys_only will return the hash and range keys along with the values for each entry
|
129
|
-
# new_image will return the entire new entry and keys
|
130
|
-
# old_image will return the entire entry before modification and keys (NOTE: Cannot perform scan when using this option)
|
131
|
-
# new_and_old_images will return the old entry before modification along with the new entry and keys
|
132
|
-
config :view_type, :validate => ["keys_only", "new_image", "old_image", "new_and_old_images"], :required => true
|
133
|
-
|
134
|
-
# Endpoint from which the table is located. Example: dynamodb.us-east-1.amazonaws.com
|
135
|
-
config :endpoint, :validate => :string, :required => true
|
136
|
-
|
137
|
-
# Endpoint from which streams should read. Example: streams.dynamodb.us-east-1.amazonaws.com
|
138
|
-
config :streams_endpoint, :validate => :string
|
139
|
-
|
140
|
-
# AWS credentials access key.
|
141
|
-
config :aws_access_key_id, :validate => :string, :default => ""
|
142
|
-
|
143
|
-
# AWS credentials secret access key.
|
144
|
-
config :aws_secret_access_key, :validate => :string, :default => ""
|
145
|
-
|
146
|
-
# A flag to indicate whether or not the plugin should scan the entire table before streaming new records.
|
147
|
-
# Streams will only push records that are less than 24 hours old, so in order to get the entire table
|
148
|
-
# an initial scan must be done.
|
149
|
-
config :perform_scan, :validate => :boolean, :default => true
|
150
|
-
|
151
|
-
# A string that uniquely identifies the KCL checkpointer name and cloudwatch metrics name.
|
152
|
-
# This is used when one worker leaves a shard so that another worker knows where to start again.
|
153
|
-
config :checkpointer, :validate => :string, :default => "logstash_input_dynamodb_cptr"
|
154
|
-
|
155
|
-
# Option to publish metrics to Cloudwatch using the checkpointer name.
|
156
|
-
config :publish_metrics, :validate => :boolean, :default => false
|
157
|
-
|
158
|
-
# Option to not automatically stream new data into logstash from DynamoDB streams.
|
159
|
-
config :perform_stream, :validate => :boolean, :default => true
|
160
|
-
|
161
|
-
# Number of read operations per second to perform when scanning the specified table.
|
162
|
-
config :read_ops, :validate => :number, :default => 1
|
163
|
-
|
164
|
-
# Number of threads to use when scanning the specified table
|
165
|
-
config :number_of_scan_threads, :validate => :number, :default => 1
|
166
|
-
|
167
|
-
# Number of threads to write to the logstash queue when scanning the table
|
168
|
-
config :number_of_write_threads, :validate => :number, :default => 1
|
169
|
-
|
170
|
-
# Configuation for how the logs will be transferred.
|
171
|
-
# plain is simply pass the message along without editing it.
|
172
|
-
# dynamodb will return just the data specified in the view_format in dynamodb format.
|
173
|
-
# For more information see: docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataFormat.html
|
174
|
-
# json_drop_binary will return just the data specified in the view_format in JSON while not including any binary values that were present.
|
175
|
-
# json_binary_as_text will return just the data specified in the view_format in JSON while including binary values as base64-encoded text.
|
176
|
-
config :log_format, :validate => ["plain", "dynamodb", "json_drop_binary", "json_binary_as_text"], :default => "plain"
|
177
|
-
|