logstash-input-blueliv 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/inputs/blueliv.rb +3 -3
- 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: c63d09ff15c1485740cd2f3ac3044e46caa5d060
|
4
|
+
data.tar.gz: 16d60dfe1583afcf34430d281cca0fd096eeb57c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9632f2ff75ef80e39fcb0fdf21fc1cf9734de2ae8dcbb4f2cc8639f2f0c86f647eaf5cc0588d600a607e69ef21c1fb1dac86c11836082e75e7fbcb46046785f
|
7
|
+
data.tar.gz: 8e94b40686619ba9cac30f4dc359503e8e47149d98b769d0707571f9d78377ea6f5e09d891b1b51e5fc47cc4c92bf9de258617a8e66b32fa878063bfa4db6c8b
|
@@ -93,9 +93,9 @@ class LogStash::Inputs::Blueliv < LogStash::Inputs::Base
|
|
93
93
|
def run(queue)
|
94
94
|
threads = []
|
95
95
|
@feeds.each do |name, conf|
|
96
|
-
if feeds[name]["active"]
|
96
|
+
if feeds[name]["active"] == 'true'
|
97
97
|
url, interval = get_url(name, @feeds[name]["feed_type"], @feeds[name]["interval"])
|
98
|
-
threads << Thread.new
|
98
|
+
threads << Thread.new{get_feed_each(queue, name, url, interval)}
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
@@ -172,7 +172,7 @@ class LogStash::Inputs::Blueliv < LogStash::Inputs::Base
|
|
172
172
|
it["@collection"] = collection
|
173
173
|
it["document_id"] = if it.has_key?("_id") then it["_id"] else SecureRandom.base64(32) end
|
174
174
|
it.delete("_id") if it.has_key?("_id")
|
175
|
-
@logger.
|
175
|
+
@logger.debug("#{it}")
|
176
176
|
evt = LogStash::Event.new(it)
|
177
177
|
decorate(evt)
|
178
178
|
queue << evt
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "logstash-input-blueliv"
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.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: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blueliv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core
|