logstash-core 5.1.1.1-java → 5.1.2-java
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8de8152e9d47ea5ce222f2811e96ec13216542ec
|
4
|
+
data.tar.gz: da613e3b8bee64c8be84dbf804f45511fdb0fc07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f5989dfd6273c39a46964798d8c4549f1ad9c196894afd0a5df53cb3b0d05ca35947c9d4032d4f3e41a5f12a50657465a249ec030ce1b2d6adc98bce5bf15b1
|
7
|
+
data.tar.gz: 8c5b2a3b25634f0f7c4d7543a1267a4ce536faa2eee61048c00519ad7d89cf68f165ea8fbe52c68dc5d6f0da121b2b8be0cbd79c90f0c47fee2a699442b83fc9
|
Binary file
|
@@ -34,8 +34,9 @@ module LogStash::Util
|
|
34
34
|
|
35
35
|
# tags is an array of string. sprintf syntax can be used.
|
36
36
|
def add_tags(new_tags, event, pluginname)
|
37
|
-
|
38
|
-
|
37
|
+
return if new_tags.empty?
|
38
|
+
|
39
|
+
tags = Array(event.get("tags")) # note that Array(nil) => []
|
39
40
|
|
40
41
|
new_tags.each do |new_tag|
|
41
42
|
new_tag = event.sprintf(new_tag)
|
data/lib/logstash/version.rb
CHANGED
@@ -248,7 +248,21 @@ describe LogStash::Filters::NOOP do
|
|
248
248
|
end
|
249
249
|
end
|
250
250
|
|
251
|
-
|
251
|
+
describe "remove_field on tags" do
|
252
|
+
config <<-CONFIG
|
253
|
+
filter {
|
254
|
+
noop {
|
255
|
+
remove_field => ["tags"]
|
256
|
+
}
|
257
|
+
}
|
258
|
+
CONFIG
|
259
|
+
|
260
|
+
sample("tags" => "foo") do
|
261
|
+
reject { subject }.include?("tags")
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
describe "remove_field on deep objects" do
|
252
266
|
config <<-CONFIG
|
253
267
|
filter {
|
254
268
|
noop {
|
metadata
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
16
|
- - '='
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: 5.1.
|
18
|
+
version: 5.1.2
|
19
19
|
name: logstash-core-event-java
|
20
20
|
prerelease: false
|
21
21
|
type: :runtime
|
@@ -23,13 +23,13 @@ dependencies:
|
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.1.
|
26
|
+
version: 5.1.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
30
|
- - '='
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 5.1.
|
32
|
+
version: 5.1.2
|
33
33
|
name: logstash-core-queue-jruby
|
34
34
|
prerelease: false
|
35
35
|
type: :runtime
|
@@ -37,7 +37,7 @@ dependencies:
|
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 5.1.
|
40
|
+
version: 5.1.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|