logstash-filter-zeromq 2.1.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/lib/logstash/filters/zeromq.rb +4 -2
- data/logstash-filter-zeromq.gemspec +2 -2
- metadata +28 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 805ec830b29b759a0a465eebe293a64bc30ab6ae
|
4
|
+
data.tar.gz: ef4b5ee14cd8c0b682aabfc371826d66def96099
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 944e34ba52961ce0460b5e772472d30e5ec6fde6562e9b62cc394f75a79ec9f84f647767e2fd13e13b693917db9b74e9a57a859b73a66a8ba220df6c8d2ef567
|
7
|
+
data.tar.gz: 5341e9f00aa37bf6a3e1021228a7249f579f6a6e3e57dd824ac49ea6ee86a7959e4004ff8beaec289f99dcf7f3db06f1077f3495957a5a231193547f47048690
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,20 @@
|
|
1
|
+
## 3.0.0
|
2
|
+
- update to new plugin api
|
3
|
+
|
1
4
|
## 2.1.1
|
2
|
-
|
5
|
+
- make sure we correctly encode the object #7
|
6
|
+
|
3
7
|
## 2.1.0
|
4
8
|
- Use logstash-mixin-zeromq
|
5
9
|
- Add tests
|
6
10
|
- Use a sentinel value to signal event cancellation instead of an empty string
|
11
|
+
|
7
12
|
## 2.0.4
|
8
13
|
- Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
|
14
|
+
|
9
15
|
## 2.0.3
|
10
16
|
- New dependency requirements for logstash-core for the 5.0 release
|
17
|
+
|
11
18
|
## 2.0.0
|
12
19
|
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
13
20
|
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
|
@@ -178,7 +178,7 @@ class LogStash::Filters::ZeroMQ < LogStash::Filters::Base
|
|
178
178
|
begin
|
179
179
|
# TODO (lusis): Allow filtering multiple fields
|
180
180
|
if @field
|
181
|
-
|
181
|
+
success, reply = send_recv(event.get(@field))
|
182
182
|
else
|
183
183
|
success, reply = send_recv(event.to_json)
|
184
184
|
end
|
@@ -200,7 +200,9 @@ class LogStash::Filters::ZeroMQ < LogStash::Filters::Base
|
|
200
200
|
filter_matched(event)
|
201
201
|
#if message send/recv was not successful add the timeout
|
202
202
|
if not success
|
203
|
-
(
|
203
|
+
tags = event.get("tags") || []
|
204
|
+
tags << @add_tag_on_timeout
|
205
|
+
event.set("tags", tags)
|
204
206
|
end
|
205
207
|
rescue => e
|
206
208
|
@logger.warn("0mq filter exception", :address => @address, :exception => e, :backtrace => e.backtrace)
|
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
|
|
2
2
|
|
3
3
|
s.name = 'logstash-filter-zeromq'
|
4
4
|
|
5
|
-
s.version = '
|
5
|
+
s.version = '3.0.0'
|
6
6
|
s.licenses = ['Apache License (2.0)']
|
7
7
|
s.summary = "ZeroMQ filter. This is a way to send an event externally for filtering"
|
8
8
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "filter" }
|
22
22
|
|
23
23
|
# Gem dependencies
|
24
|
-
s.add_runtime_dependency "logstash-core-plugin-api", "
|
24
|
+
s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
|
25
25
|
|
26
26
|
s.add_runtime_dependency "logstash-mixin-zeromq", ">= 2.0.1"
|
27
27
|
|
metadata
CHANGED
@@ -1,57 +1,63 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-zeromq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: logstash-core-plugin-api
|
15
|
-
version_requirements: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.0'
|
20
14
|
requirement: !ruby/object:Gem::Requirement
|
21
15
|
requirements:
|
22
|
-
- -
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '1.60'
|
19
|
+
- - "<="
|
23
20
|
- !ruby/object:Gem::Version
|
24
|
-
version: '
|
21
|
+
version: '2.99'
|
22
|
+
name: logstash-core-plugin-api
|
25
23
|
prerelease: false
|
26
24
|
type: :runtime
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: logstash-mixin-zeromq
|
29
25
|
version_requirements: !ruby/object:Gem::Requirement
|
30
26
|
requirements:
|
31
|
-
- -
|
27
|
+
- - ">="
|
32
28
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
29
|
+
version: '1.60'
|
30
|
+
- - "<="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2.99'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
36
|
-
- -
|
36
|
+
- - ">="
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: 2.0.1
|
39
|
+
name: logstash-mixin-zeromq
|
39
40
|
prerelease: false
|
40
41
|
type: :runtime
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: logstash-devutils
|
43
42
|
version_requirements: !ruby/object:Gem::Requirement
|
44
43
|
requirements:
|
45
|
-
- -
|
44
|
+
- - ">="
|
46
45
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
46
|
+
version: 2.0.1
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
|
-
- -
|
50
|
+
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '0'
|
53
|
+
name: logstash-devutils
|
53
54
|
prerelease: false
|
54
55
|
type: :development
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
55
61
|
description: This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program
|
56
62
|
email: info@elastic.co
|
57
63
|
executables: []
|
@@ -79,12 +85,12 @@ require_paths:
|
|
79
85
|
- lib
|
80
86
|
required_ruby_version: !ruby/object:Gem::Requirement
|
81
87
|
requirements:
|
82
|
-
- -
|
88
|
+
- - ">="
|
83
89
|
- !ruby/object:Gem::Version
|
84
90
|
version: '0'
|
85
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
92
|
requirements:
|
87
|
-
- -
|
93
|
+
- - ">="
|
88
94
|
- !ruby/object:Gem::Version
|
89
95
|
version: '0'
|
90
96
|
requirements: []
|