logstash-input-sqs_s3 1.1.8 → 1.1.9

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: 41e527e5ba2aff5c1c52b55435fd06e844c510da3f3dff0cd3dac259afa91a93
4
- data.tar.gz: e8c57898a42294b98de3438bd2d9842c4274c5ac513717346690f02236e28d84
3
+ metadata.gz: e7de24022060f4e885e322603abf41c4fbc877afced19d842c90980e629d79f8
4
+ data.tar.gz: 1f070ee138eb056954419000b48158eacdc71c0420eb5ecf414fa0f982783af5
5
5
  SHA512:
6
- metadata.gz: 8bb4bb830a9ab7fd0ed19de4ed96740a1948c2abc07b7156d755b75f6c4a9bf7a18b9caef0fc7243ceceb171c5c217a64fed984caa2ca8e2b65fbbd512eb456c
7
- data.tar.gz: 745fc01fa563652ea09a9a1ad0378998b3b8bc6aea48a5a96a64a17e94e7032e9c06233c177639c3c6768dc0fa9ef713504f3d5070e70b39907d3d84d6709028
6
+ metadata.gz: bc28c03327db1cf531666f51873b24550a9b394ee7955703510729b282e451c7763e5083228e256fe9e8a526d985dcd77cb9d9eb91f78f59bf4dcdb7a88cd202
7
+ data.tar.gz: 414350b8a4ec1b3f7822dd0e5157b4d175d987c00eba884db588662fcf2db806c0961839a830f5dbc31cb33cfb0d80c186f46252ecbbeb53d93d01c1bbbede63
@@ -1,3 +1,6 @@
1
+ ## 1.1.9
2
+ - Added metadata keys to the event
3
+
1
4
  ## 1.1.8
2
5
  - Fixed event type metadata
3
6
 
@@ -196,9 +196,10 @@ class LogStash::Inputs::SQSS3 < LogStash::Inputs::Threadable
196
196
 
197
197
  event = LogStash::Event.new()
198
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
199
+ event.set('[@metadata][' + @receipt_handle + ']', message.receipt_handle) if @receipt_handle
200
+ event.set('[@metadata][' + @message_id + ']', message.message_id) if @message_id
201
+ event.set('[@metadata][s3_object_key]', record['s3']['object']['key'])
202
+ event.set('[@metadata][' + @sent_timestamp_field + ']', convert_epoch_to_timestamp(message.attributes[SENT_TIMESTAMP])) if @sent_timestamp_field
202
203
 
203
204
  queue << event
204
205
  rescue => e
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-sqs_s3'
3
- s.version = '1.1.8'
3
+ s.version = '1.1.9'
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-sqs_s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heiko Finzel