logstash-output-kinesis-iot 0.1.0-java → 0.1.9-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8a6ba6f6855a661d1beaaeeb5adaf233d6676dd165254ac4c7a142668630144
4
- data.tar.gz: d82c78271d0e377b0e0cb3713173135aca560af740b47176bb5667e290a8257e
3
+ metadata.gz: 5e49da5415d0213c84e1e23d30e0ccabf1869062df0a3a811e014ebf13bea42b
4
+ data.tar.gz: a84219def0d32fc43b9099836b4c18a90bfbc085d3b8eee0d285def57f85aff7
5
5
  SHA512:
6
- metadata.gz: 8fc5209b6a810acc45bb0a10e31bf97e73f49ec7c447411e7a0652530fe4bdca912513ec04371c9eaa4096b38d64e9418e70b5e727b416ddc91bb6312488733f
7
- data.tar.gz: 908b6d4a53cd805f228a7abab3a843e60687e008ed815ea1733d0d67497120ae39a42da07942ecbbd1847e46e7d1969b72919b214eafe40bd5ddcd062f858737
6
+ metadata.gz: bdbdca28b480c127f80f883d1575201fe61062eba7e10cb47f8418722d9fd667733605fb0e71f4c9989bc2cba70efd25f76a280f9f4458d33ec9843de5b3bf1b
7
+ data.tar.gz: b196bc3f3775358a6d36c5358f073f7d7b3d86d30e6004c60d18552247349e0d57f26e76a8766880fe23dec702e19b07118aa56e3c1b870cac0c3d7a5d4a23bc
@@ -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()
@@ -159,6 +153,7 @@ class LogStash::Outputs::KinesisIOT < LogStash::Outputs::Base
159
153
  data: payload,
160
154
  partition_key: event.get("[@metadata][partition_key]")
161
155
  })
156
+ @logger.debug("Record sent successfully. Shard ID: #{response.shard_id}, Sequence number: #{response.sequence_number}")
162
157
  rescue => e
163
158
  @logger.warn("Error writing event to Kinesis", :exception => e)
164
159
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-kinesis-iot'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.9'
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"
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.1.0
4
+ version: 0.1.9
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-10 00:00:00.000000000 Z
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: '0'
66
+ version: '1'
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: '0'
74
+ version: '1'
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