logstash-input-jsqs_iam 5.0.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +2 -0
  3. data/CONTRIBUTORS +10 -0
  4. data/DEVELOPER.md +1 -0
  5. data/Gemfile +3 -0
  6. data/LICENSE +11 -0
  7. data/README.md +86 -0
  8. data/lib/com/amazonaws/aws-java-sdk-acm/1.11.76/aws-java-sdk-acm-1.11.76.jar +0 -0
  9. data/lib/com/amazonaws/aws-java-sdk-api-gateway/1.11.76/aws-java-sdk-api-gateway-1.11.76.jar +0 -0
  10. data/lib/com/amazonaws/aws-java-sdk-applicationautoscaling/1.11.76/aws-java-sdk-applicationautoscaling-1.11.76.jar +0 -0
  11. data/lib/com/amazonaws/aws-java-sdk-appstream/1.11.76/aws-java-sdk-appstream-1.11.76.jar +0 -0
  12. data/lib/com/amazonaws/aws-java-sdk-autoscaling/1.11.76/aws-java-sdk-autoscaling-1.11.76.jar +0 -0
  13. data/lib/com/amazonaws/aws-java-sdk-batch/1.11.76/aws-java-sdk-batch-1.11.76.jar +0 -0
  14. data/lib/com/amazonaws/aws-java-sdk-budgets/1.11.76/aws-java-sdk-budgets-1.11.76.jar +0 -0
  15. data/lib/com/amazonaws/aws-java-sdk-cloudformation/1.11.76/aws-java-sdk-cloudformation-1.11.76.jar +0 -0
  16. data/lib/com/amazonaws/aws-java-sdk-cloudfront/1.11.76/aws-java-sdk-cloudfront-1.11.76.jar +0 -0
  17. data/lib/com/amazonaws/aws-java-sdk-cloudhsm/1.11.76/aws-java-sdk-cloudhsm-1.11.76.jar +0 -0
  18. data/lib/com/amazonaws/aws-java-sdk-cloudsearch/1.11.76/aws-java-sdk-cloudsearch-1.11.76.jar +0 -0
  19. data/lib/com/amazonaws/aws-java-sdk-cloudtrail/1.11.76/aws-java-sdk-cloudtrail-1.11.76.jar +0 -0
  20. data/lib/com/amazonaws/aws-java-sdk-cloudwatch/1.11.76/aws-java-sdk-cloudwatch-1.11.76.jar +0 -0
  21. data/lib/com/amazonaws/aws-java-sdk-cloudwatchmetrics/1.11.76/aws-java-sdk-cloudwatchmetrics-1.11.76.jar +0 -0
  22. data/lib/com/amazonaws/aws-java-sdk-codebuild/1.11.76/aws-java-sdk-codebuild-1.11.76.jar +0 -0
  23. data/lib/com/amazonaws/aws-java-sdk-codecommit/1.11.76/aws-java-sdk-codecommit-1.11.76.jar +0 -0
  24. data/lib/com/amazonaws/aws-java-sdk-codedeploy/1.11.76/aws-java-sdk-codedeploy-1.11.76.jar +0 -0
  25. data/lib/com/amazonaws/aws-java-sdk-codepipeline/1.11.76/aws-java-sdk-codepipeline-1.11.76.jar +0 -0
  26. data/lib/com/amazonaws/aws-java-sdk-cognitoidentity/1.11.76/aws-java-sdk-cognitoidentity-1.11.76.jar +0 -0
  27. data/lib/com/amazonaws/aws-java-sdk-cognitoidp/1.11.76/aws-java-sdk-cognitoidp-1.11.76.jar +0 -0
  28. data/lib/com/amazonaws/aws-java-sdk-cognitosync/1.11.76/aws-java-sdk-cognitosync-1.11.76.jar +0 -0
  29. data/lib/com/amazonaws/aws-java-sdk-config/1.11.76/aws-java-sdk-config-1.11.76.jar +0 -0
  30. data/lib/com/amazonaws/aws-java-sdk-core/1.11.76/aws-java-sdk-core-1.11.76.jar +0 -0
  31. data/lib/com/amazonaws/aws-java-sdk-datapipeline/1.11.76/aws-java-sdk-datapipeline-1.11.76.jar +0 -0
  32. data/lib/com/amazonaws/aws-java-sdk-devicefarm/1.11.76/aws-java-sdk-devicefarm-1.11.76.jar +0 -0
  33. data/lib/com/amazonaws/aws-java-sdk-directconnect/1.11.76/aws-java-sdk-directconnect-1.11.76.jar +0 -0
  34. data/lib/com/amazonaws/aws-java-sdk-directory/1.11.76/aws-java-sdk-directory-1.11.76.jar +0 -0
  35. data/lib/com/amazonaws/aws-java-sdk-discovery/1.11.76/aws-java-sdk-discovery-1.11.76.jar +0 -0
  36. data/lib/com/amazonaws/aws-java-sdk-dms/1.11.76/aws-java-sdk-dms-1.11.76.jar +0 -0
  37. data/lib/com/amazonaws/aws-java-sdk-dynamodb/1.11.76/aws-java-sdk-dynamodb-1.11.76.jar +0 -0
  38. data/lib/com/amazonaws/aws-java-sdk-ec2/1.11.76/aws-java-sdk-ec2-1.11.76.jar +0 -0
  39. data/lib/com/amazonaws/aws-java-sdk-ecr/1.11.76/aws-java-sdk-ecr-1.11.76.jar +0 -0
  40. data/lib/com/amazonaws/aws-java-sdk-ecs/1.11.76/aws-java-sdk-ecs-1.11.76.jar +0 -0
  41. data/lib/com/amazonaws/aws-java-sdk-efs/1.11.76/aws-java-sdk-efs-1.11.76.jar +0 -0
  42. data/lib/com/amazonaws/aws-java-sdk-elasticache/1.11.76/aws-java-sdk-elasticache-1.11.76.jar +0 -0
  43. data/lib/com/amazonaws/aws-java-sdk-elasticbeanstalk/1.11.76/aws-java-sdk-elasticbeanstalk-1.11.76.jar +0 -0
  44. data/lib/com/amazonaws/aws-java-sdk-elasticloadbalancing/1.11.76/aws-java-sdk-elasticloadbalancing-1.11.76.jar +0 -0
  45. data/lib/com/amazonaws/aws-java-sdk-elasticloadbalancingv2/1.11.76/aws-java-sdk-elasticloadbalancingv2-1.11.76.jar +0 -0
  46. data/lib/com/amazonaws/aws-java-sdk-elasticsearch/1.11.76/aws-java-sdk-elasticsearch-1.11.76.jar +0 -0
  47. data/lib/com/amazonaws/aws-java-sdk-elastictranscoder/1.11.76/aws-java-sdk-elastictranscoder-1.11.76.jar +0 -0
  48. data/lib/com/amazonaws/aws-java-sdk-emr/1.11.76/aws-java-sdk-emr-1.11.76.jar +0 -0
  49. data/lib/com/amazonaws/aws-java-sdk-events/1.11.76/aws-java-sdk-events-1.11.76.jar +0 -0
  50. data/lib/com/amazonaws/aws-java-sdk-gamelift/1.11.76/aws-java-sdk-gamelift-1.11.76.jar +0 -0
  51. data/lib/com/amazonaws/aws-java-sdk-glacier/1.11.76/aws-java-sdk-glacier-1.11.76.jar +0 -0
  52. data/lib/com/amazonaws/aws-java-sdk-health/1.11.76/aws-java-sdk-health-1.11.76.jar +0 -0
  53. data/lib/com/amazonaws/aws-java-sdk-iam/1.11.76/aws-java-sdk-iam-1.11.76.jar +0 -0
  54. data/lib/com/amazonaws/aws-java-sdk-importexport/1.11.76/aws-java-sdk-importexport-1.11.76.jar +0 -0
  55. data/lib/com/amazonaws/aws-java-sdk-inspector/1.11.76/aws-java-sdk-inspector-1.11.76.jar +0 -0
  56. data/lib/com/amazonaws/aws-java-sdk-iot/1.11.76/aws-java-sdk-iot-1.11.76.jar +0 -0
  57. data/lib/com/amazonaws/aws-java-sdk-kinesis/1.11.76/aws-java-sdk-kinesis-1.11.76.jar +0 -0
  58. data/lib/com/amazonaws/aws-java-sdk-kms/1.11.76/aws-java-sdk-kms-1.11.76.jar +0 -0
  59. data/lib/com/amazonaws/aws-java-sdk-lambda/1.11.76/aws-java-sdk-lambda-1.11.76.jar +0 -0
  60. data/lib/com/amazonaws/aws-java-sdk-lightsail/1.11.76/aws-java-sdk-lightsail-1.11.76.jar +0 -0
  61. data/lib/com/amazonaws/aws-java-sdk-logs/1.11.76/aws-java-sdk-logs-1.11.76.jar +0 -0
  62. data/lib/com/amazonaws/aws-java-sdk-machinelearning/1.11.76/aws-java-sdk-machinelearning-1.11.76.jar +0 -0
  63. data/lib/com/amazonaws/aws-java-sdk-marketplacecommerceanalytics/1.11.76/aws-java-sdk-marketplacecommerceanalytics-1.11.76.jar +0 -0
  64. data/lib/com/amazonaws/aws-java-sdk-marketplacemeteringservice/1.11.76/aws-java-sdk-marketplacemeteringservice-1.11.76.jar +0 -0
  65. data/lib/com/amazonaws/aws-java-sdk-models/1.11.76/aws-java-sdk-models-1.11.76.jar +0 -0
  66. data/lib/com/amazonaws/aws-java-sdk-opsworks/1.11.76/aws-java-sdk-opsworks-1.11.76.jar +0 -0
  67. data/lib/com/amazonaws/aws-java-sdk-opsworkscm/1.11.76/aws-java-sdk-opsworkscm-1.11.76.jar +0 -0
  68. data/lib/com/amazonaws/aws-java-sdk-pinpoint/1.11.76/aws-java-sdk-pinpoint-1.11.76.jar +0 -0
  69. data/lib/com/amazonaws/aws-java-sdk-polly/1.11.76/aws-java-sdk-polly-1.11.76.jar +0 -0
  70. data/lib/com/amazonaws/aws-java-sdk-rds/1.11.76/aws-java-sdk-rds-1.11.76.jar +0 -0
  71. data/lib/com/amazonaws/aws-java-sdk-redshift/1.11.76/aws-java-sdk-redshift-1.11.76.jar +0 -0
  72. data/lib/com/amazonaws/aws-java-sdk-rekognition/1.11.76/aws-java-sdk-rekognition-1.11.76.jar +0 -0
  73. data/lib/com/amazonaws/aws-java-sdk-route53/1.11.76/aws-java-sdk-route53-1.11.76.jar +0 -0
  74. data/lib/com/amazonaws/aws-java-sdk-s3/1.11.76/aws-java-sdk-s3-1.11.76.jar +0 -0
  75. data/lib/com/amazonaws/aws-java-sdk-servermigration/1.11.76/aws-java-sdk-servermigration-1.11.76.jar +0 -0
  76. data/lib/com/amazonaws/aws-java-sdk-servicecatalog/1.11.76/aws-java-sdk-servicecatalog-1.11.76.jar +0 -0
  77. data/lib/com/amazonaws/aws-java-sdk-ses/1.11.76/aws-java-sdk-ses-1.11.76.jar +0 -0
  78. data/lib/com/amazonaws/aws-java-sdk-shield/1.11.76/aws-java-sdk-shield-1.11.76.jar +0 -0
  79. data/lib/com/amazonaws/aws-java-sdk-simpledb/1.11.76/aws-java-sdk-simpledb-1.11.76.jar +0 -0
  80. data/lib/com/amazonaws/aws-java-sdk-simpleworkflow/1.11.76/aws-java-sdk-simpleworkflow-1.11.76.jar +0 -0
  81. data/lib/com/amazonaws/aws-java-sdk-snowball/1.11.76/aws-java-sdk-snowball-1.11.76.jar +0 -0
  82. data/lib/com/amazonaws/aws-java-sdk-sns/1.11.76/aws-java-sdk-sns-1.11.76.jar +0 -0
  83. data/lib/com/amazonaws/aws-java-sdk-sqs/1.11.76/aws-java-sdk-sqs-1.11.76.jar +0 -0
  84. data/lib/com/amazonaws/aws-java-sdk-ssm/1.11.76/aws-java-sdk-ssm-1.11.76.jar +0 -0
  85. data/lib/com/amazonaws/aws-java-sdk-stepfunctions/1.11.76/aws-java-sdk-stepfunctions-1.11.76.jar +0 -0
  86. data/lib/com/amazonaws/aws-java-sdk-storagegateway/1.11.76/aws-java-sdk-storagegateway-1.11.76.jar +0 -0
  87. data/lib/com/amazonaws/aws-java-sdk-sts/1.11.76/aws-java-sdk-sts-1.11.76.jar +0 -0
  88. data/lib/com/amazonaws/aws-java-sdk-support/1.11.76/aws-java-sdk-support-1.11.76.jar +0 -0
  89. data/lib/com/amazonaws/aws-java-sdk-swf-libraries/1.11.22/aws-java-sdk-swf-libraries-1.11.22.jar +0 -0
  90. data/lib/com/amazonaws/aws-java-sdk-waf/1.11.76/aws-java-sdk-waf-1.11.76.jar +0 -0
  91. data/lib/com/amazonaws/aws-java-sdk-workspaces/1.11.76/aws-java-sdk-workspaces-1.11.76.jar +0 -0
  92. data/lib/com/amazonaws/aws-java-sdk-xray/1.11.76/aws-java-sdk-xray-1.11.76.jar +0 -0
  93. data/lib/com/amazonaws/aws-java-sdk/1.11.76/aws-java-sdk-1.11.76.jar +0 -0
  94. data/lib/com/amazonaws/jmespath-java/1.11.76/jmespath-java-1.11.76.jar +0 -0
  95. data/lib/com/fasterxml/jackson/core/jackson-annotations/2.6.0/jackson-annotations-2.6.0.jar +0 -0
  96. data/lib/com/fasterxml/jackson/core/jackson-core/2.6.6/jackson-core-2.6.6.jar +0 -0
  97. data/lib/com/fasterxml/jackson/core/jackson-databind/2.6.6/jackson-databind-2.6.6.jar +0 -0
  98. data/lib/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.6.6/jackson-dataformat-cbor-2.6.6.jar +0 -0
  99. data/lib/commons-codec/commons-codec/1.9/commons-codec-1.9.jar +0 -0
  100. data/lib/commons-logging/commons-logging/1.2/commons-logging-1.2.jar +0 -0
  101. data/lib/joda-time/joda-time/2.8.1/joda-time-2.8.1.jar +0 -0
  102. data/lib/logstash-input-jsqs_jars.rb +202 -0
  103. data/lib/logstash/inputs/jsqs_iam.rb +105 -0
  104. data/lib/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar +0 -0
  105. data/lib/org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.jar +0 -0
  106. data/lib/software/amazon/ion/ion-java/1.0.1/ion-java-1.0.1.jar +0 -0
  107. data/logstash-input-jsqs_iam.gemspec +32 -0
  108. data/spec/inputs/jsqs_iam_spec.rb +11 -0
  109. metadata +215 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f9a15df6e5935e633bdbdfc7a498da4bb8a02f8b0f957dfa2ba7cfa16e0e512c
4
+ data.tar.gz: adf2109b3006bcbf397820abb8479a316312c525564e7f066d00c4c73979190c
5
+ SHA512:
6
+ metadata.gz: bc46906cbe39332fea096d19e1bff57dc6f9c429a0dfb90f792a19b71d8ac5d77bc4181e82e0cb4dfb6dad4468a82449c41a515fe7f0ac4df964ee687ca8766f
7
+ data.tar.gz: 2398277bcbca022b48659f804578423216883117843022029ae2ffa10ff3fb78082bc2d53c308299a1f1607fceb3c0fc171193a3ac06dc92570973b13ee36ba8
data/CHANGELOG.md ADDED
@@ -0,0 +1,2 @@
1
+ ## 0.1.0
2
+ - Plugin created with the logstash plugin generator
data/CONTRIBUTORS ADDED
@@ -0,0 +1,10 @@
1
+ The following is a list of people who have contributed ideas, code, bug
2
+ reports, or in general have helped logstash along its way.
3
+
4
+ Contributors:
5
+ * JamieCressey89 - jamiecressey89@gmail.com
6
+
7
+ Note: If you've sent us patches, bug reports, or otherwise contributed to
8
+ Logstash, and you aren't on the list above and want to be, please let us know
9
+ and we'll make sure you're here. Contributions from folks like you are what make
10
+ open source awesome.
data/DEVELOPER.md ADDED
@@ -0,0 +1 @@
1
+ # logstash-input-jsqs_iam
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+
data/LICENSE ADDED
@@ -0,0 +1,11 @@
1
+ Licensed under the Apache License, Version 2.0 (the "License");
2
+ you may not use this file except in compliance with the License.
3
+ You may obtain a copy of the License at
4
+
5
+ http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software
8
+ distributed under the License is distributed on an "AS IS" BASIS,
9
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ See the License for the specific language governing permissions and
11
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,86 @@
1
+ # Logstash Plugin
2
+
3
+ This is a plugin for [Logstash](https://github.com/elastic/logstash).
4
+
5
+ It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
6
+
7
+ ## Documentation
8
+
9
+ Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elastic.co/guide/en/logstash/current/).
10
+
11
+ - For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
12
+ - For more asciidoc formatting tips, see the excellent reference here https://github.com/elastic/docs#asciidoc-guide
13
+
14
+ ## Need Help?
15
+
16
+ Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
17
+
18
+ ## Developing
19
+
20
+ ### 1. Plugin Developement and Testing
21
+
22
+ #### Code
23
+ - To get started, you'll need JRuby with the Bundler gem installed.
24
+
25
+ - Create a new plugin or clone and existing from the GitHub [logstash-plugins](https://github.com/logstash-plugins) organization. We also provide [example plugins](https://github.com/logstash-plugins?query=example).
26
+
27
+ - Install dependencies
28
+ ```sh
29
+ bundle install
30
+ ```
31
+
32
+ #### Test
33
+
34
+ - Update your dependencies
35
+
36
+ ```sh
37
+ bundle install
38
+ ```
39
+
40
+ - Run tests
41
+
42
+ ```sh
43
+ bundle exec rspec
44
+ ```
45
+
46
+ ### 2. Running your unpublished Plugin in Logstash
47
+
48
+ #### 2.1 Run in a local Logstash clone
49
+
50
+ - Edit Logstash `Gemfile` and add the local plugin path, for example:
51
+ ```ruby
52
+ gem "logstash-input-jsqs_iam", :path => "/your/local/logstash-input-jsqs_iam"
53
+ ```
54
+ - Install plugin
55
+ ```sh
56
+ bin/logstash-plugin install --no-verify
57
+ ```
58
+ - Run Logstash with your plugin
59
+ ```sh
60
+ bin/logstash -e 'input {jsqs_iam {}}'
61
+ ```
62
+ At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.
63
+
64
+ #### 2.2 Run in an installed Logstash
65
+
66
+ You can use the same **2.1** method to run your plugin in an installed Logstash by editing its `Gemfile` and pointing the `:path` to your local plugin development directory or you can build the gem and install it using:
67
+
68
+ - Build your plugin gem
69
+ ```sh
70
+ gem build logstash-input-jsqs_iam.gemspec
71
+ ```
72
+ - Install the plugin from the Logstash home
73
+ ```sh
74
+ bin/logstash-plugin install /your/local/plugin/logstash-input-jsqs_iam.gem
75
+ ```
76
+ - Start Logstash and proceed to test the plugin
77
+
78
+ ## Contributing
79
+
80
+ All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.
81
+
82
+ Programming is not a required skill. Whatever you've seen about open source and maintainers or community members saying "send patches or die" - you will not see that here.
83
+
84
+ It is more important to the community that you are able to contribute.
85
+
86
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
@@ -0,0 +1,202 @@
1
+ # this is a generated file, to avoid over-writing it just delete this comment
2
+ begin
3
+ require 'jar_dependencies'
4
+ rescue LoadError
5
+ require 'com/amazonaws/aws-java-sdk-pinpoint/1.11.76/aws-java-sdk-pinpoint-1.11.76.jar'
6
+ require 'com/amazonaws/aws-java-sdk-events/1.11.76/aws-java-sdk-events-1.11.76.jar'
7
+ require 'com/amazonaws/aws-java-sdk-discovery/1.11.76/aws-java-sdk-discovery-1.11.76.jar'
8
+ require 'com/amazonaws/aws-java-sdk-elasticsearch/1.11.76/aws-java-sdk-elasticsearch-1.11.76.jar'
9
+ require 'com/amazonaws/aws-java-sdk-efs/1.11.76/aws-java-sdk-efs-1.11.76.jar'
10
+ require 'com/amazonaws/jmespath-java/1.11.76/jmespath-java-1.11.76.jar'
11
+ require 'com/amazonaws/aws-java-sdk-snowball/1.11.76/aws-java-sdk-snowball-1.11.76.jar'
12
+ require 'com/amazonaws/aws-java-sdk/1.11.76/aws-java-sdk-1.11.76.jar'
13
+ require 'com/amazonaws/aws-java-sdk-opsworkscm/1.11.76/aws-java-sdk-opsworkscm-1.11.76.jar'
14
+ require 'com/amazonaws/aws-java-sdk-elasticache/1.11.76/aws-java-sdk-elasticache-1.11.76.jar'
15
+ require 'com/amazonaws/aws-java-sdk-dms/1.11.76/aws-java-sdk-dms-1.11.76.jar'
16
+ require 'joda-time/joda-time/2.8.1/joda-time-2.8.1.jar'
17
+ require 'com/amazonaws/aws-java-sdk-ec2/1.11.76/aws-java-sdk-ec2-1.11.76.jar'
18
+ require 'com/amazonaws/aws-java-sdk-codebuild/1.11.76/aws-java-sdk-codebuild-1.11.76.jar'
19
+ require 'com/amazonaws/aws-java-sdk-polly/1.11.76/aws-java-sdk-polly-1.11.76.jar'
20
+ require 'org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.jar'
21
+ require 'com/amazonaws/aws-java-sdk-acm/1.11.76/aws-java-sdk-acm-1.11.76.jar'
22
+ require 'com/amazonaws/aws-java-sdk-ecs/1.11.76/aws-java-sdk-ecs-1.11.76.jar'
23
+ require 'com/amazonaws/aws-java-sdk-autoscaling/1.11.76/aws-java-sdk-autoscaling-1.11.76.jar'
24
+ require 'com/amazonaws/aws-java-sdk-core/1.11.76/aws-java-sdk-core-1.11.76.jar'
25
+ require 'com/amazonaws/aws-java-sdk-simpledb/1.11.76/aws-java-sdk-simpledb-1.11.76.jar'
26
+ require 'com/amazonaws/aws-java-sdk-s3/1.11.76/aws-java-sdk-s3-1.11.76.jar'
27
+ require 'com/amazonaws/aws-java-sdk-cognitoidp/1.11.76/aws-java-sdk-cognitoidp-1.11.76.jar'
28
+ require 'commons-codec/commons-codec/1.9/commons-codec-1.9.jar'
29
+ require 'com/amazonaws/aws-java-sdk-rekognition/1.11.76/aws-java-sdk-rekognition-1.11.76.jar'
30
+ require 'commons-logging/commons-logging/1.2/commons-logging-1.2.jar'
31
+ require 'com/amazonaws/aws-java-sdk-inspector/1.11.76/aws-java-sdk-inspector-1.11.76.jar'
32
+ require 'com/amazonaws/aws-java-sdk-opsworks/1.11.76/aws-java-sdk-opsworks-1.11.76.jar'
33
+ require 'com/amazonaws/aws-java-sdk-cloudwatchmetrics/1.11.76/aws-java-sdk-cloudwatchmetrics-1.11.76.jar'
34
+ require 'com/amazonaws/aws-java-sdk-lightsail/1.11.76/aws-java-sdk-lightsail-1.11.76.jar'
35
+ require 'com/amazonaws/aws-java-sdk-machinelearning/1.11.76/aws-java-sdk-machinelearning-1.11.76.jar'
36
+ require 'com/amazonaws/aws-java-sdk-simpleworkflow/1.11.76/aws-java-sdk-simpleworkflow-1.11.76.jar'
37
+ require 'com/amazonaws/aws-java-sdk-sts/1.11.76/aws-java-sdk-sts-1.11.76.jar'
38
+ require 'com/amazonaws/aws-java-sdk-emr/1.11.76/aws-java-sdk-emr-1.11.76.jar'
39
+ require 'com/amazonaws/aws-java-sdk-codepipeline/1.11.76/aws-java-sdk-codepipeline-1.11.76.jar'
40
+ require 'com/amazonaws/aws-java-sdk-budgets/1.11.76/aws-java-sdk-budgets-1.11.76.jar'
41
+ require 'com/amazonaws/aws-java-sdk-swf-libraries/1.11.22/aws-java-sdk-swf-libraries-1.11.22.jar'
42
+ require 'com/amazonaws/aws-java-sdk-gamelift/1.11.76/aws-java-sdk-gamelift-1.11.76.jar'
43
+ require 'com/amazonaws/aws-java-sdk-rds/1.11.76/aws-java-sdk-rds-1.11.76.jar'
44
+ require 'com/amazonaws/aws-java-sdk-cognitosync/1.11.76/aws-java-sdk-cognitosync-1.11.76.jar'
45
+ require 'com/amazonaws/aws-java-sdk-applicationautoscaling/1.11.76/aws-java-sdk-applicationautoscaling-1.11.76.jar'
46
+ require 'com/amazonaws/aws-java-sdk-kms/1.11.76/aws-java-sdk-kms-1.11.76.jar'
47
+ require 'com/amazonaws/aws-java-sdk-elasticloadbalancingv2/1.11.76/aws-java-sdk-elasticloadbalancingv2-1.11.76.jar'
48
+ require 'com/amazonaws/aws-java-sdk-health/1.11.76/aws-java-sdk-health-1.11.76.jar'
49
+ require 'com/amazonaws/aws-java-sdk-servermigration/1.11.76/aws-java-sdk-servermigration-1.11.76.jar'
50
+ require 'com/amazonaws/aws-java-sdk-sns/1.11.76/aws-java-sdk-sns-1.11.76.jar'
51
+ require 'com/amazonaws/aws-java-sdk-importexport/1.11.76/aws-java-sdk-importexport-1.11.76.jar'
52
+ require 'com/amazonaws/aws-java-sdk-batch/1.11.76/aws-java-sdk-batch-1.11.76.jar'
53
+ require 'com/amazonaws/aws-java-sdk-ssm/1.11.76/aws-java-sdk-ssm-1.11.76.jar'
54
+ require 'com/amazonaws/aws-java-sdk-logs/1.11.76/aws-java-sdk-logs-1.11.76.jar'
55
+ require 'com/amazonaws/aws-java-sdk-config/1.11.76/aws-java-sdk-config-1.11.76.jar'
56
+ require 'com/amazonaws/aws-java-sdk-storagegateway/1.11.76/aws-java-sdk-storagegateway-1.11.76.jar'
57
+ require 'com/amazonaws/aws-java-sdk-appstream/1.11.76/aws-java-sdk-appstream-1.11.76.jar'
58
+ require 'org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar'
59
+ require 'com/amazonaws/aws-java-sdk-workspaces/1.11.76/aws-java-sdk-workspaces-1.11.76.jar'
60
+ require 'com/amazonaws/aws-java-sdk-dynamodb/1.11.76/aws-java-sdk-dynamodb-1.11.76.jar'
61
+ require 'com/amazonaws/aws-java-sdk-elasticloadbalancing/1.11.76/aws-java-sdk-elasticloadbalancing-1.11.76.jar'
62
+ require 'com/amazonaws/aws-java-sdk-stepfunctions/1.11.76/aws-java-sdk-stepfunctions-1.11.76.jar'
63
+ require 'com/amazonaws/aws-java-sdk-api-gateway/1.11.76/aws-java-sdk-api-gateway-1.11.76.jar'
64
+ require 'com/amazonaws/aws-java-sdk-cognitoidentity/1.11.76/aws-java-sdk-cognitoidentity-1.11.76.jar'
65
+ require 'com/amazonaws/aws-java-sdk-marketplacemeteringservice/1.11.76/aws-java-sdk-marketplacemeteringservice-1.11.76.jar'
66
+ require 'com/amazonaws/aws-java-sdk-datapipeline/1.11.76/aws-java-sdk-datapipeline-1.11.76.jar'
67
+ require 'com/amazonaws/aws-java-sdk-cloudhsm/1.11.76/aws-java-sdk-cloudhsm-1.11.76.jar'
68
+ require 'com/amazonaws/aws-java-sdk-cloudwatch/1.11.76/aws-java-sdk-cloudwatch-1.11.76.jar'
69
+ require 'com/fasterxml/jackson/core/jackson-core/2.6.6/jackson-core-2.6.6.jar'
70
+ require 'com/amazonaws/aws-java-sdk-codedeploy/1.11.76/aws-java-sdk-codedeploy-1.11.76.jar'
71
+ require 'com/amazonaws/aws-java-sdk-cloudfront/1.11.76/aws-java-sdk-cloudfront-1.11.76.jar'
72
+ require 'com/amazonaws/aws-java-sdk-directconnect/1.11.76/aws-java-sdk-directconnect-1.11.76.jar'
73
+ require 'com/amazonaws/aws-java-sdk-cloudsearch/1.11.76/aws-java-sdk-cloudsearch-1.11.76.jar'
74
+ require 'com/amazonaws/aws-java-sdk-xray/1.11.76/aws-java-sdk-xray-1.11.76.jar'
75
+ require 'com/amazonaws/aws-java-sdk-elastictranscoder/1.11.76/aws-java-sdk-elastictranscoder-1.11.76.jar'
76
+ require 'com/amazonaws/aws-java-sdk-kinesis/1.11.76/aws-java-sdk-kinesis-1.11.76.jar'
77
+ require 'com/amazonaws/aws-java-sdk-shield/1.11.76/aws-java-sdk-shield-1.11.76.jar'
78
+ require 'com/amazonaws/aws-java-sdk-directory/1.11.76/aws-java-sdk-directory-1.11.76.jar'
79
+ require 'com/amazonaws/aws-java-sdk-route53/1.11.76/aws-java-sdk-route53-1.11.76.jar'
80
+ require 'com/amazonaws/aws-java-sdk-elasticbeanstalk/1.11.76/aws-java-sdk-elasticbeanstalk-1.11.76.jar'
81
+ require 'com/amazonaws/aws-java-sdk-ses/1.11.76/aws-java-sdk-ses-1.11.76.jar'
82
+ require 'com/amazonaws/aws-java-sdk-waf/1.11.76/aws-java-sdk-waf-1.11.76.jar'
83
+ require 'com/amazonaws/aws-java-sdk-iot/1.11.76/aws-java-sdk-iot-1.11.76.jar'
84
+ require 'com/amazonaws/aws-java-sdk-sqs/1.11.76/aws-java-sdk-sqs-1.11.76.jar'
85
+ require 'com/amazonaws/aws-java-sdk-cloudformation/1.11.76/aws-java-sdk-cloudformation-1.11.76.jar'
86
+ require 'com/amazonaws/aws-java-sdk-support/1.11.76/aws-java-sdk-support-1.11.76.jar'
87
+ require 'com/amazonaws/aws-java-sdk-redshift/1.11.76/aws-java-sdk-redshift-1.11.76.jar'
88
+ require 'software/amazon/ion/ion-java/1.0.1/ion-java-1.0.1.jar'
89
+ require 'com/amazonaws/aws-java-sdk-devicefarm/1.11.76/aws-java-sdk-devicefarm-1.11.76.jar'
90
+ require 'com/fasterxml/jackson/core/jackson-annotations/2.6.0/jackson-annotations-2.6.0.jar'
91
+ require 'com/amazonaws/aws-java-sdk-marketplacecommerceanalytics/1.11.76/aws-java-sdk-marketplacecommerceanalytics-1.11.76.jar'
92
+ require 'com/amazonaws/aws-java-sdk-ecr/1.11.76/aws-java-sdk-ecr-1.11.76.jar'
93
+ require 'com/fasterxml/jackson/core/jackson-databind/2.6.6/jackson-databind-2.6.6.jar'
94
+ require 'com/amazonaws/aws-java-sdk-lambda/1.11.76/aws-java-sdk-lambda-1.11.76.jar'
95
+ require 'com/amazonaws/aws-java-sdk-codecommit/1.11.76/aws-java-sdk-codecommit-1.11.76.jar'
96
+ require 'com/amazonaws/aws-java-sdk-glacier/1.11.76/aws-java-sdk-glacier-1.11.76.jar'
97
+ require 'com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.6.6/jackson-dataformat-cbor-2.6.6.jar'
98
+ require 'com/amazonaws/aws-java-sdk-cloudtrail/1.11.76/aws-java-sdk-cloudtrail-1.11.76.jar'
99
+ require 'com/amazonaws/aws-java-sdk-models/1.11.76/aws-java-sdk-models-1.11.76.jar'
100
+ require 'com/amazonaws/aws-java-sdk-iam/1.11.76/aws-java-sdk-iam-1.11.76.jar'
101
+ require 'com/amazonaws/aws-java-sdk-servicecatalog/1.11.76/aws-java-sdk-servicecatalog-1.11.76.jar'
102
+ end
103
+
104
+ if defined? Jars
105
+ require_jar( 'com.amazonaws', 'aws-java-sdk-pinpoint', '1.11.76' )
106
+ require_jar( 'com.amazonaws', 'aws-java-sdk-events', '1.11.76' )
107
+ require_jar( 'com.amazonaws', 'aws-java-sdk-discovery', '1.11.76' )
108
+ require_jar( 'com.amazonaws', 'aws-java-sdk-elasticsearch', '1.11.76' )
109
+ require_jar( 'com.amazonaws', 'aws-java-sdk-efs', '1.11.76' )
110
+ require_jar( 'com.amazonaws', 'jmespath-java', '1.11.76' )
111
+ require_jar( 'com.amazonaws', 'aws-java-sdk-snowball', '1.11.76' )
112
+ require_jar( 'com.amazonaws', 'aws-java-sdk', '1.11.76' )
113
+ require_jar( 'com.amazonaws', 'aws-java-sdk-opsworkscm', '1.11.76' )
114
+ require_jar( 'com.amazonaws', 'aws-java-sdk-elasticache', '1.11.76' )
115
+ require_jar( 'com.amazonaws', 'aws-java-sdk-dms', '1.11.76' )
116
+ require_jar( 'joda-time', 'joda-time', '2.8.1' )
117
+ require_jar( 'com.amazonaws', 'aws-java-sdk-ec2', '1.11.76' )
118
+ require_jar( 'com.amazonaws', 'aws-java-sdk-codebuild', '1.11.76' )
119
+ require_jar( 'com.amazonaws', 'aws-java-sdk-polly', '1.11.76' )
120
+ require_jar( 'org.apache.httpcomponents', 'httpcore', '4.4.5' )
121
+ require_jar( 'com.amazonaws', 'aws-java-sdk-acm', '1.11.76' )
122
+ require_jar( 'com.amazonaws', 'aws-java-sdk-ecs', '1.11.76' )
123
+ require_jar( 'com.amazonaws', 'aws-java-sdk-autoscaling', '1.11.76' )
124
+ require_jar( 'com.amazonaws', 'aws-java-sdk-core', '1.11.76' )
125
+ require_jar( 'com.amazonaws', 'aws-java-sdk-simpledb', '1.11.76' )
126
+ require_jar( 'com.amazonaws', 'aws-java-sdk-s3', '1.11.76' )
127
+ require_jar( 'com.amazonaws', 'aws-java-sdk-cognitoidp', '1.11.76' )
128
+ require_jar( 'commons-codec', 'commons-codec', '1.9' )
129
+ require_jar( 'com.amazonaws', 'aws-java-sdk-rekognition', '1.11.76' )
130
+ require_jar( 'commons-logging', 'commons-logging', '1.2' )
131
+ require_jar( 'com.amazonaws', 'aws-java-sdk-inspector', '1.11.76' )
132
+ require_jar( 'com.amazonaws', 'aws-java-sdk-opsworks', '1.11.76' )
133
+ require_jar( 'com.amazonaws', 'aws-java-sdk-cloudwatchmetrics', '1.11.76' )
134
+ require_jar( 'com.amazonaws', 'aws-java-sdk-lightsail', '1.11.76' )
135
+ require_jar( 'com.amazonaws', 'aws-java-sdk-machinelearning', '1.11.76' )
136
+ require_jar( 'com.amazonaws', 'aws-java-sdk-simpleworkflow', '1.11.76' )
137
+ require_jar( 'com.amazonaws', 'aws-java-sdk-sts', '1.11.76' )
138
+ require_jar( 'com.amazonaws', 'aws-java-sdk-emr', '1.11.76' )
139
+ require_jar( 'com.amazonaws', 'aws-java-sdk-codepipeline', '1.11.76' )
140
+ require_jar( 'com.amazonaws', 'aws-java-sdk-budgets', '1.11.76' )
141
+ require_jar( 'com.amazonaws', 'aws-java-sdk-swf-libraries', '1.11.22' )
142
+ require_jar( 'com.amazonaws', 'aws-java-sdk-gamelift', '1.11.76' )
143
+ require_jar( 'com.amazonaws', 'aws-java-sdk-rds', '1.11.76' )
144
+ require_jar( 'com.amazonaws', 'aws-java-sdk-cognitosync', '1.11.76' )
145
+ require_jar( 'com.amazonaws', 'aws-java-sdk-applicationautoscaling', '1.11.76' )
146
+ require_jar( 'com.amazonaws', 'aws-java-sdk-kms', '1.11.76' )
147
+ require_jar( 'com.amazonaws', 'aws-java-sdk-elasticloadbalancingv2', '1.11.76' )
148
+ require_jar( 'com.amazonaws', 'aws-java-sdk-health', '1.11.76' )
149
+ require_jar( 'com.amazonaws', 'aws-java-sdk-servermigration', '1.11.76' )
150
+ require_jar( 'com.amazonaws', 'aws-java-sdk-sns', '1.11.76' )
151
+ require_jar( 'com.amazonaws', 'aws-java-sdk-importexport', '1.11.76' )
152
+ require_jar( 'com.amazonaws', 'aws-java-sdk-batch', '1.11.76' )
153
+ require_jar( 'com.amazonaws', 'aws-java-sdk-ssm', '1.11.76' )
154
+ require_jar( 'com.amazonaws', 'aws-java-sdk-logs', '1.11.76' )
155
+ require_jar( 'com.amazonaws', 'aws-java-sdk-config', '1.11.76' )
156
+ require_jar( 'com.amazonaws', 'aws-java-sdk-storagegateway', '1.11.76' )
157
+ require_jar( 'com.amazonaws', 'aws-java-sdk-appstream', '1.11.76' )
158
+ require_jar( 'org.apache.httpcomponents', 'httpclient', '4.5.2' )
159
+ require_jar( 'com.amazonaws', 'aws-java-sdk-workspaces', '1.11.76' )
160
+ require_jar( 'com.amazonaws', 'aws-java-sdk-dynamodb', '1.11.76' )
161
+ require_jar( 'com.amazonaws', 'aws-java-sdk-elasticloadbalancing', '1.11.76' )
162
+ require_jar( 'com.amazonaws', 'aws-java-sdk-stepfunctions', '1.11.76' )
163
+ require_jar( 'com.amazonaws', 'aws-java-sdk-api-gateway', '1.11.76' )
164
+ require_jar( 'com.amazonaws', 'aws-java-sdk-cognitoidentity', '1.11.76' )
165
+ require_jar( 'com.amazonaws', 'aws-java-sdk-marketplacemeteringservice', '1.11.76' )
166
+ require_jar( 'com.amazonaws', 'aws-java-sdk-datapipeline', '1.11.76' )
167
+ require_jar( 'com.amazonaws', 'aws-java-sdk-cloudhsm', '1.11.76' )
168
+ require_jar( 'com.amazonaws', 'aws-java-sdk-cloudwatch', '1.11.76' )
169
+ require_jar( 'com.fasterxml.jackson.core', 'jackson-core', '2.6.6' )
170
+ require_jar( 'com.amazonaws', 'aws-java-sdk-codedeploy', '1.11.76' )
171
+ require_jar( 'com.amazonaws', 'aws-java-sdk-cloudfront', '1.11.76' )
172
+ require_jar( 'com.amazonaws', 'aws-java-sdk-directconnect', '1.11.76' )
173
+ require_jar( 'com.amazonaws', 'aws-java-sdk-cloudsearch', '1.11.76' )
174
+ require_jar( 'com.amazonaws', 'aws-java-sdk-xray', '1.11.76' )
175
+ require_jar( 'com.amazonaws', 'aws-java-sdk-elastictranscoder', '1.11.76' )
176
+ require_jar( 'com.amazonaws', 'aws-java-sdk-kinesis', '1.11.76' )
177
+ require_jar( 'com.amazonaws', 'aws-java-sdk-shield', '1.11.76' )
178
+ require_jar( 'com.amazonaws', 'aws-java-sdk-directory', '1.11.76' )
179
+ require_jar( 'com.amazonaws', 'aws-java-sdk-route53', '1.11.76' )
180
+ require_jar( 'com.amazonaws', 'aws-java-sdk-elasticbeanstalk', '1.11.76' )
181
+ require_jar( 'com.amazonaws', 'aws-java-sdk-ses', '1.11.76' )
182
+ require_jar( 'com.amazonaws', 'aws-java-sdk-waf', '1.11.76' )
183
+ require_jar( 'com.amazonaws', 'aws-java-sdk-iot', '1.11.76' )
184
+ require_jar( 'com.amazonaws', 'aws-java-sdk-sqs', '1.11.76' )
185
+ require_jar( 'com.amazonaws', 'aws-java-sdk-cloudformation', '1.11.76' )
186
+ require_jar( 'com.amazonaws', 'aws-java-sdk-support', '1.11.76' )
187
+ require_jar( 'com.amazonaws', 'aws-java-sdk-redshift', '1.11.76' )
188
+ require_jar( 'software.amazon.ion', 'ion-java', '1.0.1' )
189
+ require_jar( 'com.amazonaws', 'aws-java-sdk-devicefarm', '1.11.76' )
190
+ require_jar( 'com.fasterxml.jackson.core', 'jackson-annotations', '2.6.0' )
191
+ require_jar( 'com.amazonaws', 'aws-java-sdk-marketplacecommerceanalytics', '1.11.76' )
192
+ require_jar( 'com.amazonaws', 'aws-java-sdk-ecr', '1.11.76' )
193
+ require_jar( 'com.fasterxml.jackson.core', 'jackson-databind', '2.6.6' )
194
+ require_jar( 'com.amazonaws', 'aws-java-sdk-lambda', '1.11.76' )
195
+ require_jar( 'com.amazonaws', 'aws-java-sdk-codecommit', '1.11.76' )
196
+ require_jar( 'com.amazonaws', 'aws-java-sdk-glacier', '1.11.76' )
197
+ require_jar( 'com.fasterxml.jackson.dataformat', 'jackson-dataformat-cbor', '2.6.6' )
198
+ require_jar( 'com.amazonaws', 'aws-java-sdk-cloudtrail', '1.11.76' )
199
+ require_jar( 'com.amazonaws', 'aws-java-sdk-models', '1.11.76' )
200
+ require_jar( 'com.amazonaws', 'aws-java-sdk-iam', '1.11.76' )
201
+ require_jar( 'com.amazonaws', 'aws-java-sdk-servicecatalog', '1.11.76' )
202
+ end
@@ -0,0 +1,105 @@
1
+ # encoding: utf-8
2
+ # Original plugin by Al Belsky (https://logstash.jira.com/browse/LOGSTASH-1968)
3
+ require "logstash/inputs/threadable"
4
+ require "logstash/namespace"
5
+ require 'logstash-input-jsqs_jars.rb'
6
+
7
+ java_import "java.util.concurrent.Executors"
8
+ java_import "java.util.concurrent.atomic.AtomicInteger"
9
+ java_import "com.amazonaws.ClientConfiguration"
10
+ java_import "com.amazonaws.auth.profile.ProfileCredentialsProvider"
11
+ java_import "com.amazonaws.services.sqs.AmazonSQSAsyncClient"
12
+ java_import "com.amazonaws.services.sqs.buffered.AmazonSQSBufferedAsyncClient"
13
+ java_import "com.amazonaws.services.sqs.buffered.QueueBufferConfig"
14
+ java_import "com.amazonaws.services.sqs.model.ReceiveMessageRequest"
15
+ java_import "com.amazonaws.services.sqs.model.DeleteMessageBatchRequest"
16
+ java_import "com.amazonaws.services.sqs.model.DeleteMessageBatchRequestEntry"
17
+
18
+ class LogStash::Inputs::JsqsIam < LogStash::Inputs::Threadable
19
+ config_name "jsqs_iam"
20
+
21
+ # If undefined, Logstash will complain, even if codec is unused.
22
+ default :codec, "json"
23
+
24
+ # Name of the SQS Queue name to pull messages from. Note that this is just the name of the queue, not the URL or ARN.
25
+ config :queueUrl, :validate => :string, :required => true
26
+ config :max_connections, :validate => :number, :default => 1000
27
+ config :max_batch_open_ms, :validate => :number, :default => 5000
28
+ config :max_inflight_receive_batches, :validate => :number, :default => 50
29
+ config :max_done_receive_batches, :validate => :number, :default => 50
30
+ config :max_number_of_messages, :validate => :number, :default => 10
31
+ config :retry_count, :validate => :number, :default => 5
32
+
33
+ @receiveRequest
34
+
35
+ public
36
+ def register
37
+ @logger.info("Registering SQS input")
38
+
39
+ # Client config
40
+ @logger.debug("Creating AWS SQS queue client")
41
+ clientConfig = ClientConfiguration.new.withMaxConnections(@max_connections)
42
+
43
+ # SQS client
44
+ @sqs = AmazonSQSAsyncClient.new(clientConfig)
45
+ @logger.debug("Amazon SQS Client created")
46
+
47
+ # Buffered client config
48
+ queueBufferConfig = QueueBufferConfig.new.withMaxBatchOpenMs(@max_batch_open_ms).withMaxInflightReceiveBatches(@max_inflight_receive_batches).withMaxDoneReceiveBatches(@max_done_receive_batches)
49
+
50
+ @bufferedSqs = AmazonSQSBufferedAsyncClient.new(@sqs, queueBufferConfig);
51
+ @logger.info("Connected to AWS SQS queue successfully.", :queue => @queue)
52
+
53
+ @receiveRequest = ReceiveMessageRequest.new(@queueUrl).withMaxNumberOfMessages(@max_number_of_messages)
54
+
55
+ end # def register
56
+
57
+ public
58
+ def run(output_queue)
59
+ @logger.debug("Polling SQS queue", :queue => @queue)
60
+
61
+ while !stop?
62
+ begin
63
+ result = @bufferedSqs.receiveMessage(@receiveRequest)
64
+ deleteEntries = []
65
+ # Process messages (expected 0 - 10 messages)
66
+ result.messages.each_with_index { |message, i|
67
+ @codec.decode(message.body) do |event|
68
+ if event.is_a?(Array)
69
+ event.each do |msg|
70
+ decorate(msg)
71
+ output_queue << msg
72
+ end
73
+ else
74
+ decorate(event)
75
+ output_queue << event
76
+ end
77
+ end # codec.decode
78
+
79
+ #Add Delete entry for this message
80
+ deleteEntries << DeleteMessageBatchRequestEntry.new.withId(i.to_s).withReceiptHandle(message.getReceiptHandle())
81
+ }
82
+ if deleteEntries.size > 0
83
+ deleteRequest = DeleteMessageBatchRequest.new.withQueueUrl(@queueUrl);
84
+ deleteRequest.setEntries(deleteEntries);
85
+ # Issue delete request
86
+ @bufferedSqs.deleteMessageBatch(deleteRequest);
87
+ end # end if
88
+ rescue Exception => e
89
+ if (@retry_count -= 1) > 0
90
+ @logger.warn("Unable to access SQS queue. Sleeping before retrying.", :error => e.to_s, :queue => @queue)
91
+ sleep(10)
92
+ retry
93
+ else
94
+ @logger.error("Unable to access SQS queue. Aborting.", :error => e.to_s, :queue => @queue)
95
+ stop
96
+ end # if
97
+ end # begin
98
+ end # polling loop
99
+ end # def run
100
+
101
+ def stop
102
+ @sqs = nil
103
+ @bufferedSqs = nil
104
+ end
105
+ end # class LogStash::Inputs::JsqsIam
@@ -0,0 +1,32 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'logstash-input-jsqs_iam'
3
+ s.version = '5.0.0'
4
+ s.homepage = 'https://github.com/hanky0301/logstash-input-jsqs_iam'
5
+ s.licenses = ['Apache-2.0']
6
+ s.summary = "SQS input plugin using the AWS Java SDK with instance profile credentials"
7
+ 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 logstash-input-jsqs_iam. This gem is not a stand-alone program"
8
+ s.authors = ["Hank Chang"]
9
+ s.email = 'hanky0301@gmail.com'
10
+ s.require_paths = ['lib']
11
+ s.platform = RUBY_PLATFORM
12
+
13
+ # Files
14
+ s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
15
+ # Tests
16
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
17
+
18
+ # Special flag to let us know this is actually a logstash plugin
19
+ s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }
20
+
21
+ # Gem dependencies
22
+ s.requirements << "jar 'com.amazonaws:aws-java-sdk', '1.11.76'"
23
+ s.requirements << "jar 'commons-logging:commons-logging', '1.2'"
24
+ s.requirements << "jar 'org.apache.httpcomponents:httpclient', '4.5.2'"
25
+ s.requirements << "jar 'org.apache.httpcomponents:httpcore', '4.4.5'"
26
+
27
+ s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
28
+ s.add_runtime_dependency 'logstash-codec-json'
29
+ s.add_runtime_dependency 'jar-dependencies'
30
+
31
+ s.add_development_dependency 'logstash-devutils'
32
+ end
@@ -0,0 +1,11 @@
1
+ # encoding: utf-8
2
+ require "logstash/devutils/rspec/spec_helper"
3
+ require "logstash/inputs/jsqs_iam"
4
+
5
+ describe LogStash::Inputs::JsqsIam do
6
+
7
+ it_behaves_like "an interruptible input plugin" do
8
+ let(:config) { { "interval" => 100 } }
9
+ end
10
+
11
+ end
metadata ADDED
@@ -0,0 +1,215 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: logstash-input-jsqs_iam
3
+ version: !ruby/object:Gem::Version
4
+ version: 5.0.0
5
+ platform: java
6
+ authors:
7
+ - Hank Chang
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-08-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '2.0'
19
+ name: logstash-core-plugin-api
20
+ prerelease: false
21
+ type: :runtime
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ name: logstash-codec-json
34
+ prerelease: false
35
+ type: :runtime
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ name: jar-dependencies
48
+ prerelease: false
49
+ type: :runtime
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ name: logstash-devutils
62
+ prerelease: false
63
+ type: :development
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: This gem is a logstash plugin required to be installed on top of the
70
+ Logstash core pipeline using $LS_HOME/bin/plugin install logstash-input-jsqs_iam.
71
+ This gem is not a stand-alone program
72
+ email: hanky0301@gmail.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - CHANGELOG.md
78
+ - CONTRIBUTORS
79
+ - DEVELOPER.md
80
+ - Gemfile
81
+ - LICENSE
82
+ - README.md
83
+ - lib/com/amazonaws/aws-java-sdk-acm/1.11.76/aws-java-sdk-acm-1.11.76.jar
84
+ - lib/com/amazonaws/aws-java-sdk-api-gateway/1.11.76/aws-java-sdk-api-gateway-1.11.76.jar
85
+ - lib/com/amazonaws/aws-java-sdk-applicationautoscaling/1.11.76/aws-java-sdk-applicationautoscaling-1.11.76.jar
86
+ - lib/com/amazonaws/aws-java-sdk-appstream/1.11.76/aws-java-sdk-appstream-1.11.76.jar
87
+ - lib/com/amazonaws/aws-java-sdk-autoscaling/1.11.76/aws-java-sdk-autoscaling-1.11.76.jar
88
+ - lib/com/amazonaws/aws-java-sdk-batch/1.11.76/aws-java-sdk-batch-1.11.76.jar
89
+ - lib/com/amazonaws/aws-java-sdk-budgets/1.11.76/aws-java-sdk-budgets-1.11.76.jar
90
+ - lib/com/amazonaws/aws-java-sdk-cloudformation/1.11.76/aws-java-sdk-cloudformation-1.11.76.jar
91
+ - lib/com/amazonaws/aws-java-sdk-cloudfront/1.11.76/aws-java-sdk-cloudfront-1.11.76.jar
92
+ - lib/com/amazonaws/aws-java-sdk-cloudhsm/1.11.76/aws-java-sdk-cloudhsm-1.11.76.jar
93
+ - lib/com/amazonaws/aws-java-sdk-cloudsearch/1.11.76/aws-java-sdk-cloudsearch-1.11.76.jar
94
+ - lib/com/amazonaws/aws-java-sdk-cloudtrail/1.11.76/aws-java-sdk-cloudtrail-1.11.76.jar
95
+ - lib/com/amazonaws/aws-java-sdk-cloudwatch/1.11.76/aws-java-sdk-cloudwatch-1.11.76.jar
96
+ - lib/com/amazonaws/aws-java-sdk-cloudwatchmetrics/1.11.76/aws-java-sdk-cloudwatchmetrics-1.11.76.jar
97
+ - lib/com/amazonaws/aws-java-sdk-codebuild/1.11.76/aws-java-sdk-codebuild-1.11.76.jar
98
+ - lib/com/amazonaws/aws-java-sdk-codecommit/1.11.76/aws-java-sdk-codecommit-1.11.76.jar
99
+ - lib/com/amazonaws/aws-java-sdk-codedeploy/1.11.76/aws-java-sdk-codedeploy-1.11.76.jar
100
+ - lib/com/amazonaws/aws-java-sdk-codepipeline/1.11.76/aws-java-sdk-codepipeline-1.11.76.jar
101
+ - lib/com/amazonaws/aws-java-sdk-cognitoidentity/1.11.76/aws-java-sdk-cognitoidentity-1.11.76.jar
102
+ - lib/com/amazonaws/aws-java-sdk-cognitoidp/1.11.76/aws-java-sdk-cognitoidp-1.11.76.jar
103
+ - lib/com/amazonaws/aws-java-sdk-cognitosync/1.11.76/aws-java-sdk-cognitosync-1.11.76.jar
104
+ - lib/com/amazonaws/aws-java-sdk-config/1.11.76/aws-java-sdk-config-1.11.76.jar
105
+ - lib/com/amazonaws/aws-java-sdk-core/1.11.76/aws-java-sdk-core-1.11.76.jar
106
+ - lib/com/amazonaws/aws-java-sdk-datapipeline/1.11.76/aws-java-sdk-datapipeline-1.11.76.jar
107
+ - lib/com/amazonaws/aws-java-sdk-devicefarm/1.11.76/aws-java-sdk-devicefarm-1.11.76.jar
108
+ - lib/com/amazonaws/aws-java-sdk-directconnect/1.11.76/aws-java-sdk-directconnect-1.11.76.jar
109
+ - lib/com/amazonaws/aws-java-sdk-directory/1.11.76/aws-java-sdk-directory-1.11.76.jar
110
+ - lib/com/amazonaws/aws-java-sdk-discovery/1.11.76/aws-java-sdk-discovery-1.11.76.jar
111
+ - lib/com/amazonaws/aws-java-sdk-dms/1.11.76/aws-java-sdk-dms-1.11.76.jar
112
+ - lib/com/amazonaws/aws-java-sdk-dynamodb/1.11.76/aws-java-sdk-dynamodb-1.11.76.jar
113
+ - lib/com/amazonaws/aws-java-sdk-ec2/1.11.76/aws-java-sdk-ec2-1.11.76.jar
114
+ - lib/com/amazonaws/aws-java-sdk-ecr/1.11.76/aws-java-sdk-ecr-1.11.76.jar
115
+ - lib/com/amazonaws/aws-java-sdk-ecs/1.11.76/aws-java-sdk-ecs-1.11.76.jar
116
+ - lib/com/amazonaws/aws-java-sdk-efs/1.11.76/aws-java-sdk-efs-1.11.76.jar
117
+ - lib/com/amazonaws/aws-java-sdk-elasticache/1.11.76/aws-java-sdk-elasticache-1.11.76.jar
118
+ - lib/com/amazonaws/aws-java-sdk-elasticbeanstalk/1.11.76/aws-java-sdk-elasticbeanstalk-1.11.76.jar
119
+ - lib/com/amazonaws/aws-java-sdk-elasticloadbalancing/1.11.76/aws-java-sdk-elasticloadbalancing-1.11.76.jar
120
+ - lib/com/amazonaws/aws-java-sdk-elasticloadbalancingv2/1.11.76/aws-java-sdk-elasticloadbalancingv2-1.11.76.jar
121
+ - lib/com/amazonaws/aws-java-sdk-elasticsearch/1.11.76/aws-java-sdk-elasticsearch-1.11.76.jar
122
+ - lib/com/amazonaws/aws-java-sdk-elastictranscoder/1.11.76/aws-java-sdk-elastictranscoder-1.11.76.jar
123
+ - lib/com/amazonaws/aws-java-sdk-emr/1.11.76/aws-java-sdk-emr-1.11.76.jar
124
+ - lib/com/amazonaws/aws-java-sdk-events/1.11.76/aws-java-sdk-events-1.11.76.jar
125
+ - lib/com/amazonaws/aws-java-sdk-gamelift/1.11.76/aws-java-sdk-gamelift-1.11.76.jar
126
+ - lib/com/amazonaws/aws-java-sdk-glacier/1.11.76/aws-java-sdk-glacier-1.11.76.jar
127
+ - lib/com/amazonaws/aws-java-sdk-health/1.11.76/aws-java-sdk-health-1.11.76.jar
128
+ - lib/com/amazonaws/aws-java-sdk-iam/1.11.76/aws-java-sdk-iam-1.11.76.jar
129
+ - lib/com/amazonaws/aws-java-sdk-importexport/1.11.76/aws-java-sdk-importexport-1.11.76.jar
130
+ - lib/com/amazonaws/aws-java-sdk-inspector/1.11.76/aws-java-sdk-inspector-1.11.76.jar
131
+ - lib/com/amazonaws/aws-java-sdk-iot/1.11.76/aws-java-sdk-iot-1.11.76.jar
132
+ - lib/com/amazonaws/aws-java-sdk-kinesis/1.11.76/aws-java-sdk-kinesis-1.11.76.jar
133
+ - lib/com/amazonaws/aws-java-sdk-kms/1.11.76/aws-java-sdk-kms-1.11.76.jar
134
+ - lib/com/amazonaws/aws-java-sdk-lambda/1.11.76/aws-java-sdk-lambda-1.11.76.jar
135
+ - lib/com/amazonaws/aws-java-sdk-lightsail/1.11.76/aws-java-sdk-lightsail-1.11.76.jar
136
+ - lib/com/amazonaws/aws-java-sdk-logs/1.11.76/aws-java-sdk-logs-1.11.76.jar
137
+ - lib/com/amazonaws/aws-java-sdk-machinelearning/1.11.76/aws-java-sdk-machinelearning-1.11.76.jar
138
+ - lib/com/amazonaws/aws-java-sdk-marketplacecommerceanalytics/1.11.76/aws-java-sdk-marketplacecommerceanalytics-1.11.76.jar
139
+ - lib/com/amazonaws/aws-java-sdk-marketplacemeteringservice/1.11.76/aws-java-sdk-marketplacemeteringservice-1.11.76.jar
140
+ - lib/com/amazonaws/aws-java-sdk-models/1.11.76/aws-java-sdk-models-1.11.76.jar
141
+ - lib/com/amazonaws/aws-java-sdk-opsworks/1.11.76/aws-java-sdk-opsworks-1.11.76.jar
142
+ - lib/com/amazonaws/aws-java-sdk-opsworkscm/1.11.76/aws-java-sdk-opsworkscm-1.11.76.jar
143
+ - lib/com/amazonaws/aws-java-sdk-pinpoint/1.11.76/aws-java-sdk-pinpoint-1.11.76.jar
144
+ - lib/com/amazonaws/aws-java-sdk-polly/1.11.76/aws-java-sdk-polly-1.11.76.jar
145
+ - lib/com/amazonaws/aws-java-sdk-rds/1.11.76/aws-java-sdk-rds-1.11.76.jar
146
+ - lib/com/amazonaws/aws-java-sdk-redshift/1.11.76/aws-java-sdk-redshift-1.11.76.jar
147
+ - lib/com/amazonaws/aws-java-sdk-rekognition/1.11.76/aws-java-sdk-rekognition-1.11.76.jar
148
+ - lib/com/amazonaws/aws-java-sdk-route53/1.11.76/aws-java-sdk-route53-1.11.76.jar
149
+ - lib/com/amazonaws/aws-java-sdk-s3/1.11.76/aws-java-sdk-s3-1.11.76.jar
150
+ - lib/com/amazonaws/aws-java-sdk-servermigration/1.11.76/aws-java-sdk-servermigration-1.11.76.jar
151
+ - lib/com/amazonaws/aws-java-sdk-servicecatalog/1.11.76/aws-java-sdk-servicecatalog-1.11.76.jar
152
+ - lib/com/amazonaws/aws-java-sdk-ses/1.11.76/aws-java-sdk-ses-1.11.76.jar
153
+ - lib/com/amazonaws/aws-java-sdk-shield/1.11.76/aws-java-sdk-shield-1.11.76.jar
154
+ - lib/com/amazonaws/aws-java-sdk-simpledb/1.11.76/aws-java-sdk-simpledb-1.11.76.jar
155
+ - lib/com/amazonaws/aws-java-sdk-simpleworkflow/1.11.76/aws-java-sdk-simpleworkflow-1.11.76.jar
156
+ - lib/com/amazonaws/aws-java-sdk-snowball/1.11.76/aws-java-sdk-snowball-1.11.76.jar
157
+ - lib/com/amazonaws/aws-java-sdk-sns/1.11.76/aws-java-sdk-sns-1.11.76.jar
158
+ - lib/com/amazonaws/aws-java-sdk-sqs/1.11.76/aws-java-sdk-sqs-1.11.76.jar
159
+ - lib/com/amazonaws/aws-java-sdk-ssm/1.11.76/aws-java-sdk-ssm-1.11.76.jar
160
+ - lib/com/amazonaws/aws-java-sdk-stepfunctions/1.11.76/aws-java-sdk-stepfunctions-1.11.76.jar
161
+ - lib/com/amazonaws/aws-java-sdk-storagegateway/1.11.76/aws-java-sdk-storagegateway-1.11.76.jar
162
+ - lib/com/amazonaws/aws-java-sdk-sts/1.11.76/aws-java-sdk-sts-1.11.76.jar
163
+ - lib/com/amazonaws/aws-java-sdk-support/1.11.76/aws-java-sdk-support-1.11.76.jar
164
+ - lib/com/amazonaws/aws-java-sdk-swf-libraries/1.11.22/aws-java-sdk-swf-libraries-1.11.22.jar
165
+ - lib/com/amazonaws/aws-java-sdk-waf/1.11.76/aws-java-sdk-waf-1.11.76.jar
166
+ - lib/com/amazonaws/aws-java-sdk-workspaces/1.11.76/aws-java-sdk-workspaces-1.11.76.jar
167
+ - lib/com/amazonaws/aws-java-sdk-xray/1.11.76/aws-java-sdk-xray-1.11.76.jar
168
+ - lib/com/amazonaws/aws-java-sdk/1.11.76/aws-java-sdk-1.11.76.jar
169
+ - lib/com/amazonaws/jmespath-java/1.11.76/jmespath-java-1.11.76.jar
170
+ - lib/com/fasterxml/jackson/core/jackson-annotations/2.6.0/jackson-annotations-2.6.0.jar
171
+ - lib/com/fasterxml/jackson/core/jackson-core/2.6.6/jackson-core-2.6.6.jar
172
+ - lib/com/fasterxml/jackson/core/jackson-databind/2.6.6/jackson-databind-2.6.6.jar
173
+ - lib/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.6.6/jackson-dataformat-cbor-2.6.6.jar
174
+ - lib/commons-codec/commons-codec/1.9/commons-codec-1.9.jar
175
+ - lib/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
176
+ - lib/joda-time/joda-time/2.8.1/joda-time-2.8.1.jar
177
+ - lib/logstash-input-jsqs_jars.rb
178
+ - lib/logstash/inputs/jsqs_iam.rb
179
+ - lib/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar
180
+ - lib/org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.jar
181
+ - lib/software/amazon/ion/ion-java/1.0.1/ion-java-1.0.1.jar
182
+ - logstash-input-jsqs_iam.gemspec
183
+ - spec/inputs/jsqs_iam_spec.rb
184
+ homepage: https://github.com/hanky0301/logstash-input-jsqs_iam
185
+ licenses:
186
+ - Apache-2.0
187
+ metadata:
188
+ logstash_plugin: 'true'
189
+ logstash_group: input
190
+ post_install_message:
191
+ rdoc_options: []
192
+ require_paths:
193
+ - lib
194
+ required_ruby_version: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - ">="
197
+ - !ruby/object:Gem::Version
198
+ version: '0'
199
+ required_rubygems_version: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: '0'
204
+ requirements:
205
+ - jar 'com.amazonaws:aws-java-sdk', '1.11.76'
206
+ - jar 'commons-logging:commons-logging', '1.2'
207
+ - jar 'org.apache.httpcomponents:httpclient', '4.5.2'
208
+ - jar 'org.apache.httpcomponents:httpcore', '4.4.5'
209
+ rubyforge_project:
210
+ rubygems_version: 2.7.6
211
+ signing_key:
212
+ specification_version: 4
213
+ summary: SQS input plugin using the AWS Java SDK with instance profile credentials
214
+ test_files:
215
+ - spec/inputs/jsqs_iam_spec.rb