logstash-input-sqs_s3 1.1.7 → 1.1.8

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: c524078ed8f5e5d84e3614400ae31a355e9e5dacfacb2c8770e99ba2dbf0d7e8
4
- data.tar.gz: 501f0149a91800a7ac2e3ad29164817c306998f05b438887ec0610ce7d8d6223
3
+ metadata.gz: 41e527e5ba2aff5c1c52b55435fd06e844c510da3f3dff0cd3dac259afa91a93
4
+ data.tar.gz: e8c57898a42294b98de3438bd2d9842c4274c5ac513717346690f02236e28d84
5
5
  SHA512:
6
- metadata.gz: e412f199789e51aed20cfdc313661e7de6942f8608ca5ab956b5bea3538091a8968a70224f545f3e8e383faa7a24dc519f8665cdce6a3d01b3b6d90f18fe4721
7
- data.tar.gz: 034b50d0183f05fe72d1a2f82288d61ef47439e023eb7045d48529e4f456e3c38ee99b533f7a0b59cae7cc40e153f32e2fa1b964dc46cbf824d3df1c207ff630
6
+ metadata.gz: 8bb4bb830a9ab7fd0ed19de4ed96740a1948c2abc07b7156d755b75f6c4a9bf7a18b9caef0fc7243ceceb171c5c217a64fed984caa2ca8e2b65fbbd512eb456c
7
+ data.tar.gz: 745fc01fa563652ea09a9a1ad0378998b3b8bc6aea48a5a96a64a17e94e7032e9c06233c177639c3c6768dc0fa9ef713504f3d5070e70b39907d3d84d6709028
@@ -1,3 +1,6 @@
1
+ ## 1.1.8
2
+ - Fixed event type metadata
3
+
1
4
  ## 1.1.7
2
5
  - Added event type metadata to know when file is processed, and generate event with SQS message details
3
6
 
@@ -194,14 +194,13 @@ class LogStash::Inputs::SQSS3 < LogStash::Inputs::Threadable
194
194
  end
195
195
  end
196
196
 
197
- @codec.decode(record) do |event|
198
- event.set(@receipt_handle, message.receipt_handle) if @receipt_handle
199
- event.set(@message_id, message.message_id) if @message_id
200
- event.set(@sent_timestamp_field, convert_epoch_to_timestamp(message.attributes[SENT_TIMESTAMP])) if @sent_timestamp_field
201
- event.set('[@metadata][event_type]', 'complete')
197
+ event = LogStash::Event.new()
198
+ event.set('[@metadata][event_type]', 'complete')
199
+ event.set(@receipt_handle, message.receipt_handle) if @receipt_handle
200
+ event.set(@message_id, message.message_id) if @message_id
201
+ event.set(@sent_timestamp_field, convert_epoch_to_timestamp(message.attributes[SENT_TIMESTAMP])) if @sent_timestamp_field
202
202
 
203
- queue << event
204
- end
203
+ queue << event
205
204
  rescue => e
206
205
  @logger.warn("issuing :skip_delete on failed plain text processing", :bucket => record['s3']['bucket']['name'], :object => record['s3']['object']['key'], :error => e)
207
206
  throw :skip_delete
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-sqs_s3'
3
- s.version = '1.1.7'
3
+ s.version = '1.1.8'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Get logs from AWS s3 buckets as issued by an object-created event via sqs."
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/plugin install gemname. This gem is not a stand-alone program. Full credit goes to Heiko Finzel. Republishing this gem to support Logstash 5."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-sqs_s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heiko Finzel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-08 00:00:00.000000000 Z
11
+ date: 2017-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement