logstash-filter-useragent 3.3.1-java → 3.3.2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/docs/index.asciidoc +1 -1
- data/lib/logstash/filters/useragent.rb +1 -1
- data/logstash-filter-useragent.gemspec +1 -1
- data/spec/filters/useragent_spec.rb +8 -8
- data/vendor/jar-dependencies/org/logstash/filters/logstash-filter-useragent/{3.3.1/logstash-filter-useragent-3.3.1.jar → 3.3.2/logstash-filter-useragent-3.3.2.jar} +0 -0
- data/version +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4f5d1a2a061a3938da1ef57fad1655f6eb208bda7652b1f70bda6a246c1ef2f
|
4
|
+
data.tar.gz: 6c8b303069da2155d613d7387dea50fbd10a7e88a4dcd3a20b26bb16fb5b4a4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48304cee22aa580b5694e2c592197b542396f87e0b17d67142ab61097bb41b3b0c421647bf77b8d7ad05d7c9810e4f51c772c0de04df679933d67f27d7c726d9
|
7
|
+
data.tar.gz: bc3452414837f659fa077efe254f82df07873756c6fb316a17b7a9b646d6e17c29c6ad163646c7e5a0026ca954d7f4814f794c0277f56a4067d4df1b4069f5af
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 3.3.2
|
2
|
+
- Added preview of ECS-v8 support with existing ECS-v1 implementation [#76](https://github.com/logstash-plugins/logstash-filter-useragent/pull/76)
|
3
|
+
- Internal: update to Gradle 7 [#75](https://github.com/logstash-plugins/logstash-filter-useragent/pull/75)
|
4
|
+
|
1
5
|
## 3.3.1
|
2
6
|
- Fix: invalid 3.3.0 release which did not package correctly [#71](https://github.com/logstash-plugins/logstash-filter-useragent/pull/71)
|
3
7
|
|
data/docs/index.asciidoc
CHANGED
@@ -125,7 +125,7 @@ filter plugins.
|
|
125
125
|
* Value type is <<string,string>>
|
126
126
|
* Supported values are:
|
127
127
|
** `disabled`: does not use ECS-compatible field names (fields might be set at the root of the event)
|
128
|
-
** `v1`: uses fields that are compatible with Elastic Common Schema (for example, `[user_agent][version]`)
|
128
|
+
** `v1`, `v8`: uses fields that are compatible with Elastic Common Schema (for example, `[user_agent][version]`)
|
129
129
|
* Default value depends on which version of Logstash is running:
|
130
130
|
** When Logstash provides a `pipeline.ecs_compatibility` setting, its value is used as the default
|
131
131
|
** Otherwise, the default value is `disabled`.
|
@@ -14,7 +14,7 @@ require 'logstash/plugin_mixins/ecs_compatibility_support'
|
|
14
14
|
# <https://github.com/tobie/ua-parser/>.
|
15
15
|
class LogStash::Filters::UserAgent < LogStash::Filters::Base
|
16
16
|
|
17
|
-
include LogStash::PluginMixins::ECSCompatibilitySupport(:disabled, :v1)
|
17
|
+
include LogStash::PluginMixins::ECSCompatibilitySupport(:disabled, :v1, :v8 => :v1)
|
18
18
|
|
19
19
|
config_name "useragent"
|
20
20
|
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
|
23
23
|
# Gem dependencies
|
24
24
|
s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
|
25
|
-
s.add_runtime_dependency 'logstash-mixin-ecs_compatibility_support', '~> 1.
|
25
|
+
s.add_runtime_dependency 'logstash-mixin-ecs_compatibility_support', '~> 1.3'
|
26
26
|
s.add_development_dependency 'logstash-devutils'
|
27
27
|
end
|
28
28
|
|
@@ -13,7 +13,7 @@ describe LogStash::Filters::UserAgent do
|
|
13
13
|
let(:event) { LogStash::Event.new('message' => message) }
|
14
14
|
|
15
15
|
context 'with target', :ecs_compatibility_support do
|
16
|
-
ecs_compatibility_matrix(:disabled, :v1) do |ecs_select|
|
16
|
+
ecs_compatibility_matrix(:disabled, :v1, :v8 => :v1) do |ecs_select|
|
17
17
|
|
18
18
|
let(:ecs_compatibility?) { ecs_select.active_mode != :disabled }
|
19
19
|
|
@@ -237,7 +237,7 @@ describe LogStash::Filters::UserAgent do
|
|
237
237
|
end
|
238
238
|
|
239
239
|
context "manually specified regexes file", :ecs_compatibility_support do
|
240
|
-
ecs_compatibility_matrix(:disabled, :v1) do |ecs_select|
|
240
|
+
ecs_compatibility_matrix(:disabled, :v1, :v8 => :v1) do |ecs_select|
|
241
241
|
|
242
242
|
let(:ecs_compatibility?) { ecs_select.active_mode != :disabled }
|
243
243
|
|
@@ -275,7 +275,7 @@ describe LogStash::Filters::UserAgent do
|
|
275
275
|
end
|
276
276
|
|
277
277
|
context "without target field", :ecs_compatibility_support do
|
278
|
-
ecs_compatibility_matrix(:disabled, :v1) do |ecs_select|
|
278
|
+
ecs_compatibility_matrix(:disabled, :v1, :v8 => :v1) do |ecs_select|
|
279
279
|
|
280
280
|
let(:ecs_compatibility?) { ecs_select.active_mode != :disabled }
|
281
281
|
|
@@ -310,7 +310,7 @@ describe LogStash::Filters::UserAgent do
|
|
310
310
|
end
|
311
311
|
|
312
312
|
context "nested target field", :ecs_compatibility_support do
|
313
|
-
ecs_compatibility_matrix(:disabled, :v1) do
|
313
|
+
ecs_compatibility_matrix(:disabled, :v1, :v8 => :v1) do
|
314
314
|
|
315
315
|
before(:each) do
|
316
316
|
allow_any_instance_of(described_class).to receive(:ecs_compatibility).and_return(ecs_compatibility)
|
@@ -337,7 +337,7 @@ describe LogStash::Filters::UserAgent do
|
|
337
337
|
end
|
338
338
|
|
339
339
|
context "without user agent", :ecs_compatibility_support do
|
340
|
-
ecs_compatibility_matrix(:disabled, :v1) do |ecs_select|
|
340
|
+
ecs_compatibility_matrix(:disabled, :v1, :v8 => :v1) do |ecs_select|
|
341
341
|
|
342
342
|
let(:ecs_compatibility?) { ecs_select.active_mode != :disabled }
|
343
343
|
|
@@ -383,7 +383,7 @@ describe LogStash::Filters::UserAgent do
|
|
383
383
|
end
|
384
384
|
|
385
385
|
context "with prefix", :ecs_compatibility_support do
|
386
|
-
ecs_compatibility_matrix(:disabled, :v1) do |ecs_select|
|
386
|
+
ecs_compatibility_matrix(:disabled, :v1, :v8 => :v1) do |ecs_select|
|
387
387
|
|
388
388
|
let(:message) { 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0' }
|
389
389
|
let(:options) { super().merge('prefix' => 'pre_') }
|
@@ -402,7 +402,7 @@ describe LogStash::Filters::UserAgent do
|
|
402
402
|
end if ecs_select.active_mode == :disabled
|
403
403
|
|
404
404
|
it 'warns in ECS mode (and ignores prefix)' do
|
405
|
-
expect( subject.logger ).to receive(:warn).with
|
405
|
+
expect( subject.logger ).to receive(:warn).with %r{Field prefix isn't supported in ECS compatibility mode}
|
406
406
|
subject.register
|
407
407
|
|
408
408
|
subject.filter(event)
|
@@ -416,7 +416,7 @@ describe LogStash::Filters::UserAgent do
|
|
416
416
|
end
|
417
417
|
|
418
418
|
context "no prefix", :ecs_compatibility_support do
|
419
|
-
ecs_compatibility_matrix(:disabled, :v1) do
|
419
|
+
ecs_compatibility_matrix(:disabled, :v1, :v8 => :v1) do
|
420
420
|
|
421
421
|
let(:message) { 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0' }
|
422
422
|
|
Binary file
|
data/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.
|
1
|
+
3.3.2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-useragent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -35,7 +35,7 @@ dependencies:
|
|
35
35
|
requirements:
|
36
36
|
- - "~>"
|
37
37
|
- !ruby/object:Gem::Version
|
38
|
-
version: '1.
|
38
|
+
version: '1.3'
|
39
39
|
name: logstash-mixin-ecs_compatibility_support
|
40
40
|
prerelease: false
|
41
41
|
type: :runtime
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.3'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
@@ -77,7 +77,7 @@ files:
|
|
77
77
|
- lib/logstash/filters/useragent.rb
|
78
78
|
- logstash-filter-useragent.gemspec
|
79
79
|
- spec/filters/useragent_spec.rb
|
80
|
-
- vendor/jar-dependencies/org/logstash/filters/logstash-filter-useragent/3.3.
|
80
|
+
- vendor/jar-dependencies/org/logstash/filters/logstash-filter-useragent/3.3.2/logstash-filter-useragent-3.3.2.jar
|
81
81
|
- version
|
82
82
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
83
83
|
licenses:
|
@@ -101,8 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
|
-
|
105
|
-
rubygems_version: 2.6.13
|
104
|
+
rubygems_version: 3.1.6
|
106
105
|
signing_key:
|
107
106
|
specification_version: 4
|
108
107
|
summary: Parses user agent strings into fields
|