logstash-input-s3-sns-sqs 1.1.3 → 1.1.4

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
  SHA1:
3
- metadata.gz: f850e217e0a240b7b6f1b9ab7ff0737a3ac7659e
4
- data.tar.gz: 182fd290c792c17d3a77f3266e0e484ddca93144
3
+ metadata.gz: 4fa2bf47e17297deddd8e7d59521e9df1480aedb
4
+ data.tar.gz: 70c8306bdeef99ca5e3ce98a43f15d6db0cca371
5
5
  SHA512:
6
- metadata.gz: b5a49cdee2483b3889cded8f092bb4805c7ba14c83f08d2409660c371d54990801c78dc7fb7fd150a9f4e741e2e4c1bbaa23f979a6429b9e2ad376a15f5c71ad
7
- data.tar.gz: a656531ffc9aa39f01af4996d247b2755715f8f5ebd327dafcf409ad18184bcfb96f01914324a83a748270849b92b4755766ca012684b580d4d419e5e892fa8b
6
+ metadata.gz: a3c2a94f24ffe5b6513bb74647c0b0b12d3e62097a09675b2afe1af7d266387e8b27046e94189cf4b74a0af0f3e2095a4c2f6e1bbf096ce3cb382bfefb001680
7
+ data.tar.gz: c95bcc18de6838c79b74b22d997db71dab0ccea97cc42282f5ef446eb98ff2852ba6443903fa17b74d3874791f2f12d5e7046439ce486e0efe60146447005e01
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## 1.1.4
2
+ - Add Account-ID to config
1
3
  ## 1.1.2
2
4
  - Fix a Bug in the S3 Key generation
3
5
  - Enable shipping throug SNS Topic (needs another toJSON)
@@ -90,7 +90,7 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
90
90
 
91
91
  # Name of the SQS Queue to pull messages from. Note that this is just the name of the queue, not the URL or ARN.
92
92
  config :queue, :validate => :string, :required => true
93
-
93
+ config :queue_owner_aws_account_id, :validate => :string, :required => false
94
94
  # Whether to delete files from S3 after processing.
95
95
  config :delete_on_success, :validate => :boolean, :default => false
96
96
 
@@ -106,7 +106,7 @@ class LogStash::Inputs::S3SNSSQS < LogStash::Inputs::Threadable
106
106
 
107
107
  def setup_queue
108
108
  aws_sqs_client = Aws::SQS::Client.new(aws_options_hash)
109
- queue_url = aws_sqs_client.get_queue_url(:queue_name => @queue)[:queue_url]
109
+ queue_url = aws_sqs_client.get_queue_url({ queue_name: @queue, queue_owner_aws_account_id: @queue_owner_aws_account_id})[:queue_url]
110
110
  @poller = Aws::SQS::QueuePoller.new(queue_url, :client => aws_sqs_client)
111
111
  @s3 = Aws::S3::Client.new(aws_options_hash)
112
112
  rescue Aws::SQS::Errors::ServiceError => e
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-s3-sns-sqs'
3
- s.version = '1.1.3'
3
+ s.version = '1.1.4'
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 sns -> 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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-s3-sns-sqs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Herweg