logstash-output-kinesis 0.0.5-java → 0.0.6-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0490dca4e99b04323125c026d6609880dc499b86
4
- data.tar.gz: f1bdd1d7398aa59cdadd1051cd6a1af5ee9c81fe
3
+ metadata.gz: e100ede09db9dd83a8ed889b842f9db7041b95e4
4
+ data.tar.gz: 288ca7b8a3577c3d4815f9f2812c74b4efe8ae30
5
5
  SHA512:
6
- metadata.gz: f3b22449d35b46ebc36cbf15156ef9b162cd1fa5663d0d626e746ebbaf7c0a3a8266a02b6f09c38e2cb8894628aea90a611d264995f0e7aaddff96c608e4f7fb
7
- data.tar.gz: 1fb7c5f7e81249cb64e5ab5610dc5722ac905c433c5974b672879cd6ef2616b6c94471a8811417ed4ebe5cde5525232d43254b37dada4338ca48889dea0ffca9
6
+ metadata.gz: 59ec38fd9efdbab9b6003c8f8662ec2fd80fe524a50a2238e591ad36c1b9f4d9f7a6374023285974342416e7b95c9758297b10ae52f0e19949c5f80c09eb042c
7
+ data.tar.gz: 9daeaceae967035fda4fab0ae16bdc84457069d7b64c05af7d2ff60ec9e566c9cc7fecbaac676b0d109e776f46d0a159d2b4ef3e6fa6246315069a150c4bf223
data/README.md CHANGED
@@ -73,6 +73,8 @@ This is caused by [amazon-kinesis-producer#10](https://github.com/awslabs/amazon
73
73
 
74
74
  ## Developing
75
75
 
76
+ Ensure you have JRuby 1.7.x installed. [rvm](https://rvm.io/) is your friend :)
77
+
76
78
  ```sh
77
79
  bundle install
78
80
  bundle exec rake
@@ -1,3 +1,3 @@
1
1
  module LogstashOutputKinesis
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -81,6 +81,7 @@ class LogStash::Outputs::Kinesis < LogStash::Outputs::Base
81
81
  def teardown
82
82
  @producer.flushSync()
83
83
  @producer.destroy()
84
+ finished()
84
85
  end
85
86
 
86
87
  def create_kpl_config
@@ -116,7 +117,11 @@ class LogStash::Outputs::Kinesis < LogStash::Outputs::Base
116
117
  end
117
118
 
118
119
  def send_record(event, payload)
119
- event_blob = ByteBuffer::wrap(payload.to_java_bytes)
120
- @producer.addUserRecord(@stream_name, event["[@metadata][partition_key]"], event_blob)
120
+ begin
121
+ event_blob = ByteBuffer::wrap(payload.to_java_bytes)
122
+ @producer.addUserRecord(@stream_name, event["[@metadata][partition_key]"], event_blob)
123
+ rescue => e
124
+ @logger.warn("Error writing event to Kinesis", :exception => e, :event => event)
125
+ end
121
126
  end
122
127
  end
@@ -24,13 +24,9 @@ Gem::Specification.new do |s|
24
24
  "logstash_group" => "output"
25
25
  }
26
26
 
27
- # Jar dependencies
28
- s.requirements << "jar 'com.amazonaws:amazon-kinesis-producer', '0.10.0'"
29
-
30
27
  s.platform = "java"
31
28
 
32
29
  # Gem dependencies
33
- s.add_runtime_dependency "jar-dependencies"
34
30
  s.add_runtime_dependency "logstash-core", ">= 1.4.0", "< 2.0.0"
35
31
  s.add_runtime_dependency "logstash-codec-plain"
36
32
  s.add_runtime_dependency "logstash-codec-json"
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-kinesis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: java
6
6
  authors:
7
7
  - Sam Day
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-25 00:00:00.000000000 Z
11
+ date: 2015-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- requirement: !ruby/object:Gem::Requirement
15
- requirements:
16
- - - '>='
17
- - !ruby/object:Gem::Version
18
- version: '0'
19
- name: jar-dependencies
20
- prerelease: false
21
- type: :runtime
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  requirement: !ruby/object:Gem::Requirement
29
15
  requirements:
@@ -112,7 +98,6 @@ files:
112
98
  - .rspec
113
99
  - .ruby-version
114
100
  - .travis.yml
115
- - CHANGELOG.md
116
101
  - Gemfile
117
102
  - LICENSE
118
103
  - README.md
@@ -161,10 +146,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
146
  - - '>='
162
147
  - !ruby/object:Gem::Version
163
148
  version: '0'
164
- requirements:
165
- - jar 'com.amazonaws:amazon-kinesis-producer', '0.10.0'
149
+ requirements: []
166
150
  rubyforge_project:
167
- rubygems_version: 2.1.9
151
+ rubygems_version: 2.4.8
168
152
  signing_key:
169
153
  specification_version: 4
170
154
  summary: This output plugin sends records to Kinesis using the Kinesis Producer Library (KPL)
@@ -1,3 +0,0 @@
1
- # 0.0.1
2
-
3
- Initial version