logstash-filter-linelookup 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/logstash/filters/linelookup.rb +3 -1
- data/logstash-filter-linelookup.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c4ea24106acf8ee8fccd7abeea77aec4beb2198f34099507b37846ff38ef02d
|
4
|
+
data.tar.gz: 5e4b5a793b2edd3d76b9fba92afccba3feb676e059a3b949bd91612878a97e86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7f6e62988d0d582310d09a71a0db65f7e8c2c31b2322d257b818da66f0410768e6cf77feee32904127b1d57bf1d905f12faf82b77f16b64c212e36bbc8a5c10
|
7
|
+
data.tar.gz: 9e37de02eb8d28be8f4616fd69682c7f9c221be90ea9a86c7ce8aa59802ce4ce8a2be135e9a5215309fb7ce2c23674ced2324fa76c0e88d8aa75a2a01dad94ee
|
data/CHANGELOG.md
CHANGED
@@ -32,6 +32,7 @@ class LogStash::Filters::Linelookup < LogStash::Filters::Base
|
|
32
32
|
@lookupconn ||= connect
|
33
33
|
|
34
34
|
@lookupconn.puts(event.sprintf(@query))
|
35
|
+
@lookupconn.flush
|
35
36
|
|
36
37
|
response = @lookupconn.gets.chop
|
37
38
|
|
@@ -41,12 +42,13 @@ class LogStash::Filters::Linelookup < LogStash::Filters::Base
|
|
41
42
|
end
|
42
43
|
|
43
44
|
rescue => e
|
45
|
+
@logger.warn("Failed to query lookup service", :event => event, :exception => e)
|
44
46
|
@lookupconn = nil
|
45
47
|
retries -= 1
|
46
48
|
unless retries < 0
|
47
49
|
retry
|
48
50
|
else
|
49
|
-
@logger.warn("
|
51
|
+
@logger.warn("Too many reties. Giving up.", :event => event)
|
50
52
|
event.tag("_linelookup_failure")
|
51
53
|
end
|
52
54
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-filter-linelookup'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.2'
|
4
4
|
s.licenses = ['MIT']
|
5
5
|
s.summary = 'Logstash Filter Plugin for Linelookup'
|
6
6
|
s.description = 'A logstash filter for enrichment via a simple line-protocol over a socket'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-linelookup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Wecke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core-plugin-api
|