logstash-input-blueliv 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f93593a5f0ac2f84de2133f030b010f9d6e9ddcc
4
- data.tar.gz: 96f7fb2c72c1fbcce6bf03e59d0564084e5ef836
3
+ metadata.gz: ae7ab2caf237124564d8f1bd2f7b3af11e67a181
4
+ data.tar.gz: ffa24ce670c67859941b74da03b693e0d521f295
5
5
  SHA512:
6
- metadata.gz: 94a6b4fa308af18e6e4a01618c7443fc697aa312197475f7ec5fe34f3b4ceb1b80add236292b907cc54f942530d1d6ef114e67218d5d105131f5367aea1944d8
7
- data.tar.gz: 6ba937047471ea2ca1df09c2e27d1084ae0e25799acd83bcd57607c48d62f7ee5096a67f994023f02c2f7c685188474750c6b8ffecf3cac0c97540cd70593c9a
6
+ metadata.gz: 739dc701fc6fa95fa1983b0dc1aa69315ed8b9435f5fcf175e2a46ecdc1bc342712ab4337b74841465bb231aebe226b253f646e71eb497e93ad46cf1c00feebc
7
+ data.tar.gz: b038b72e748318190940c034cde2d2c730ba871f4bff108cfe394582d6782be2b485df8c8ff333a03f95e40424efecf00ff6ec499e55779dee331cd696bc8fcf
@@ -185,12 +185,18 @@ class LogStash::Inputs::Blueliv < LogStash::Inputs::Base
185
185
  block.call if block
186
186
  break
187
187
  rescue RestClient::Exception => e
188
- @logger.error(e)
189
188
  case e.http_code
190
189
  when 401, 403
191
190
  @logger.info("You do not have access to this resource! Please contact #{@contact}")
192
191
  break
192
+ when 404
193
+ @logger.info("Resource #{url} not found")
194
+ break
195
+ when 429
196
+ @logger.info("You exceeded your request limit rate!")
197
+ break
193
198
  else
199
+ @logger.error(e)
194
200
  @logger.info("Will retry in #{FAILURE_SLEEP} seconds")
195
201
  sleep(FAILURE_SLEEP)
196
202
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "logstash-input-blueliv"
3
- s.version = "0.1.0"
3
+ s.version = "0.1.1"
4
4
  s.licenses = ["Apache License (2.0)"]
5
5
  s.summary = "This plugin allows users to access Blueliv Crime Servers and Bot IPs feeds."
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 logstash-input-blueliv. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-blueliv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blueliv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-01 00:00:00.000000000 Z
11
+ date: 2015-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement