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 +4 -4
- data/spec/logstash/filters/base_spec.rb +35 -0
- data/versions-gem-copy.yml +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9d7d36743dd7f39111f8a88f64f0696fc4fbb79411fb2bbc070e20bf7fef179
|
4
|
+
data.tar.gz: 9b6a1e235e2d5356990d5f4c4b609d4e87b913c53a139278127174befe85c69d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 {
|
data/versions-gem-copy.yml
CHANGED
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.
|
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
|
+
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
|