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 +4 -4
- data/lib/logstash/inputs/blueliv.rb +7 -1
- data/logstash-input-blueliv.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ae7ab2caf237124564d8f1bd2f7b3af11e67a181
|
|
4
|
+
data.tar.gz: ffa24ce670c67859941b74da03b693e0d521f295
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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-
|
|
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
|