logstash-output-kinesis-iot 0.0.1-java → 0.1.8-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/outputs/kinesis-iot.rb +2 -8
- data/logstash-output-kinesis-iot.gemspec +4 -4
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd675d5c0a123eb9c66e096e862062b905ff8ebd24db5f2aacf6e0a5b460a318
|
4
|
+
data.tar.gz: fb50d1680f61b904f6bff02f431f962f7d6b61f6dc2e41ad9d5908a059072486
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ddfa1568a11bf2739c4e01a43325dbf6242ae63bf9504c2331c9f3bc94c469d97a41d4d25220e49ebbaefa71f0102c17b558055d93e1ecf2552c43b4c5e8b4d
|
7
|
+
data.tar.gz: ab0dc04047694f9b51589345bec9a19b356e31e18b1cad1cd05a86f04d11bd8dec09912aed793d197a3b598e1a0702ce07714dec4b49b2870396a32e228bd072
|
@@ -102,12 +102,6 @@ class LogStash::Outputs::KinesisIOT < LogStash::Outputs::Base
|
|
102
102
|
# Initialize Kinesis client
|
103
103
|
@kinesis = Aws::Kinesis::Client.new
|
104
104
|
# send data to kinesis
|
105
|
-
response = @kinesis.put_record({
|
106
|
-
stream_name: @stream_name,
|
107
|
-
data: '{"test":"test"}',
|
108
|
-
partition_key: 'test'
|
109
|
-
})
|
110
|
-
@logger.info("Record sent successfully. Shard ID: #{response.shard_id}, Sequence number: #{response.sequence_number}")
|
111
105
|
end
|
112
106
|
def renew_aws
|
113
107
|
@creds = getIotAccess()
|
@@ -123,7 +117,6 @@ class LogStash::Outputs::KinesisIOT < LogStash::Outputs::Base
|
|
123
117
|
@creds = getIotAccess()
|
124
118
|
init_aws()
|
125
119
|
@codec.on_event(&method(:send_record))
|
126
|
-
@logger.error("Kinesis_IOT PLugin is empty")
|
127
120
|
end # def register
|
128
121
|
|
129
122
|
public
|
@@ -160,11 +153,12 @@ class LogStash::Outputs::KinesisIOT < LogStash::Outputs::Base
|
|
160
153
|
data: payload,
|
161
154
|
partition_key: event.get("[@metadata][partition_key]")
|
162
155
|
})
|
156
|
+
@logger.debug("Record sent successfully. Shard ID: #{response.shard_id}, Sequence number: #{response.sequence_number}")
|
163
157
|
rescue => e
|
164
158
|
@logger.warn("Error writing event to Kinesis", :exception => e)
|
165
159
|
end
|
166
160
|
|
167
|
-
num = @producer.getOutstandingRecordsCount()
|
161
|
+
# num = @producer.getOutstandingRecordsCount()
|
168
162
|
# if num > @max_pending_records
|
169
163
|
# @logger.warn("Kinesis is too busy - blocking until things have cleared up")
|
170
164
|
# @producer.flushSync()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-kinesis-iot'
|
3
|
-
s.version = '0.
|
3
|
+
s.version = '0.1.8'
|
4
4
|
s.licenses = ['Apache-2.0']
|
5
5
|
s.summary = "Sends data to a AWS kinesis, "
|
6
6
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
# Gem dependencies
|
21
21
|
# # Gem dependencies
|
22
22
|
s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
|
23
|
-
s.add_development_dependency 'logstash-devutils'
|
24
|
-
s.add_runtime_dependency "logstash-codec-json"
|
25
|
-
s.add_runtime_dependency "aws-sdk-kinesis"
|
23
|
+
s.add_development_dependency 'logstash-devutils', ">= 0"
|
24
|
+
s.add_runtime_dependency "logstash-codec-json", ">= 0"
|
25
|
+
s.add_runtime_dependency "aws-sdk-kinesis", "~> 1.70"
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-kinesis-iot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Jeremy Frandon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,17 +61,17 @@ dependencies:
|
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- - "
|
64
|
+
- - "~>"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
66
|
+
version: '1.70'
|
67
67
|
name: aws-sdk-kinesis
|
68
68
|
prerelease: false
|
69
69
|
type: :runtime
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - "
|
72
|
+
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
74
|
+
version: '1.70'
|
75
75
|
description: This gem is a Logstash plugin required to be installed on top of the
|
76
76
|
Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
|
77
77
|
gem is not a stand-alone program
|