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: c1c528ad65660126cc95b61d32483ba720122505
4
- data.tar.gz: ed0b7dbcd0d18786caa99f1eacc6b44cf6def997
3
+ metadata.gz: 8de8152e9d47ea5ce222f2811e96ec13216542ec
4
+ data.tar.gz: da613e3b8bee64c8be84dbf804f45511fdb0fc07
5
5
  SHA512:
6
- metadata.gz: acd07b85def1d3754b60f147c5403a7cb624e0bee8a812dfffe7e6dc09ecb2b651d8a689f243a2efaec965b1a3b4a42eafe1f9d442dfa5626e9cc9ae3713ef90
7
- data.tar.gz: 410e63863b1679c7c6be251b3a08f278cb990f77fc26e0fc2236e79a87eeb7a154553ded30876cf3983aa4d4b2c654592c9a889b4cffa8fb8978822f193a9716
6
+ metadata.gz: 5f5989dfd6273c39a46964798d8c4549f1ad9c196894afd0a5df53cb3b0d05ca35947c9d4032d4f3e41a5f12a50657465a249ec030ce1b2d6adc98bce5bf15b1
7
+ data.tar.gz: 8c5b2a3b25634f0f7c4d7543a1267a4ce536faa2eee61048c00519ad7d89cf68f165ea8fbe52c68dc5d6f0da121b2b8be0cbd79c90f0c47fee2a699442b83fc9
Binary file
@@ -5,4 +5,4 @@
5
5
  # Note to authors: this should not include dashes because 'gem' barfs if
6
6
  # you include a dash in the version string.
7
7
 
8
- LOGSTASH_CORE_VERSION = "5.1.1.1"
8
+ LOGSTASH_CORE_VERSION = "5.1.2"
@@ -106,7 +106,7 @@ module LogStash
106
106
  {
107
107
  :plugin_params => plugin_params,
108
108
  :took_in_nanos => took_in_nanos,
109
- :took_in_millis => took_in_nanos / 1000,
109
+ :took_in_millis => took_in_nanos / 1000000,
110
110
  :event => event.to_json
111
111
  }
112
112
  end
@@ -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
- tags = event.get("tags")
38
- tags = tags.nil? ? [] : Array(tags)
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)
@@ -11,4 +11,4 @@
11
11
  # eventually this file should be in the root logstash lib fir and dependencies in logstash-core should be
12
12
  # fixed.
13
13
 
14
- LOGSTASH_VERSION = "5.1.1.1"
14
+ LOGSTASH_VERSION = "5.1.2"
@@ -248,7 +248,21 @@ describe LogStash::Filters::NOOP do
248
248
  end
249
249
  end
250
250
 
251
- describe "remove_field on deep objects" do
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.1.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-03 00:00:00.000000000 Z
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.1.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.1.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.1.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.1.1
40
+ version: 5.1.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements: