logstash-core 6.8.5-java → 6.8.6-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
  SHA256:
3
- metadata.gz: 84179c4f9ae39abcd3c065fa3390bce06dd1481e530aebd4abbca052ac540131
4
- data.tar.gz: 83c77b369a1b2b07b6792f334cf36786ec148f96d7a2260d610dd683017d03c1
3
+ metadata.gz: a9d7d36743dd7f39111f8a88f64f0696fc4fbb79411fb2bbc070e20bf7fef179
4
+ data.tar.gz: 9b6a1e235e2d5356990d5f4c4b609d4e87b913c53a139278127174befe85c69d
5
5
  SHA512:
6
- metadata.gz: 372d280612e8c418a90287a89dbcdd0b3b2cd000781029a0c249aeab35b48ae4370a95f7ab22420f811e19dd775bdf48e4aac9a9d3af39778c4a6bff76467b55
7
- data.tar.gz: f428c9a8c26431f53cb43ad416b3b378517021366ab10d5dbe7d4e0e3a42beb05a0d73bf7c842a9022466cb74dab771c534e25f52e58ac87fa7d4319852b87c1
6
+ metadata.gz: 725ab71aadf8ebb3ef481191340c19b40541c75e27dd88a52acf7cc493593000fdff86836a348451d2f0d8cb10b8ae28129821e161be3c8ef8e526d752520131
7
+ data.tar.gz: e682dff610e7be2ab9a148610f885c15b71365f415f5831b0832e2427fed6711d66b17f1a33368b9ff80b975b92a1155ae1e400c9d966b54b4548ea155efda92
@@ -280,6 +280,41 @@ describe LogStash::Filters::NOOP do
280
280
  end
281
281
  end
282
282
 
283
+ describe "remove_field within @metadata" do
284
+ config <<-CONFIG
285
+ filter {
286
+ noop {
287
+ remove_field => ["[@metadata][f1]", "[@metadata][f2]", "[@metadata][f4][f5]"]
288
+ }
289
+ }
290
+ CONFIG
291
+
292
+ sample_one("type" => "noop", "@metadata" => {"f1" => "one", "f2" => { "f3" => "three"}, "f4" => { "f5" => "five", "f6" => "six"}, "f7" => "seven"}) do
293
+ expect(subject.include?("[@metadata][f1]")).to be_falsey
294
+ expect(subject.include?("[@metadata][f2]")).to be_falsey
295
+ expect(subject.include?("[@metadata][f4]")).to be_truthy
296
+ expect(subject.include?("[@metadata][f4][f5]")).to be_falsey
297
+ expect(subject.include?("[@metadata][f4][f6]")).to be_truthy
298
+ expect(subject.include?("[@metadata][f7]")).to be_truthy
299
+ end
300
+ end
301
+
302
+ describe "remove_field on @metadata" do
303
+ config <<-CONFIG
304
+ filter {
305
+ noop {
306
+ remove_field => ["[@metadata]"]
307
+ }
308
+ }
309
+ CONFIG
310
+
311
+ sample_one("type" => "noop", "@metadata" => {"f1" => "one", "f2" => { "f3" => "three"}}) do
312
+ expect(subject.include?("[@metadata]")).to be_truthy
313
+ expect(subject.include?("[@metadata][f1]")).to be_falsey
314
+ expect(subject.include?("[@metadata][f2]")).to be_falsey
315
+ end
316
+ end
317
+
283
318
  describe "remove_field on array" do
284
319
  config <<-CONFIG
285
320
  filter {
@@ -1,6 +1,6 @@
1
1
  ---
2
- logstash: 6.8.5
3
- logstash-core: 6.8.5
2
+ logstash: 6.8.6
3
+ logstash-core: 6.8.6
4
4
  logstash-core-plugin-api: 2.1.16
5
5
 
6
6
  # jruby must reference a *released* version of jruby which can be downloaded from the official download url
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.8.5
4
+ version: 6.8.6
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-13 00:00:00.000000000 Z
11
+ date: 2019-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement