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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e05f8ed58a5a3da6b96b39e003aa564d78ebd3d13fbc0caf73c0d71eb4e444c9
4
- data.tar.gz: a49de6db640b18c72345e626ac63ebdeee5437d3b538fdfa90367a12a954cb75
3
+ metadata.gz: 2c4ea24106acf8ee8fccd7abeea77aec4beb2198f34099507b37846ff38ef02d
4
+ data.tar.gz: 5e4b5a793b2edd3d76b9fba92afccba3feb676e059a3b949bd91612878a97e86
5
5
  SHA512:
6
- metadata.gz: d32fde2a7a298ba98741efe296a90381faa6d5f76eb93146eaaa75670450d664322919cad1c072b7da76263fe47e9b171352c87e43b48d1c44475004fd1e3155
7
- data.tar.gz: d44589afe4fa35c8005a8d2a3b710900136e1b04ead85aa9949d8f352797630e65f5a7550b582c54aa80fb5e5a91e92498f6890d92c3632740f9f060382f233c
6
+ metadata.gz: e7f6e62988d0d582310d09a71a0db65f7e8c2c31b2322d257b818da66f0410768e6cf77feee32904127b1d57bf1d905f12faf82b77f16b64c212e36bbc8a5c10
7
+ data.tar.gz: 9e37de02eb8d28be8f4616fd69682c7f9c221be90ea9a86c7ce8aa59802ce4ce8a2be135e9a5215309fb7ce2c23674ced2324fa76c0e88d8aa75a2a01dad94ee
data/CHANGELOG.md CHANGED
@@ -1,2 +1,5 @@
1
+ ## 0.1.1
2
+ - Log retries
3
+
1
4
  ## 0.1.0
2
5
  - Init release
@@ -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("Failed to query lookup service", :event => event, :exception => e)
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.0'
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.0
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-05-24 00:00:00.000000000 Z
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