logstash-filter-clone 4.1.1 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/docs/index.asciidoc +2 -2
- data/lib/logstash/filters/clone.rb +1 -1
- data/logstash-filter-clone.gemspec +1 -1
- data/spec/filters/clone_spec.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83a7881d4e3f768dfaed89527caad7b4de0a16e37e242fd69d9f40b4df5a0fb6
|
4
|
+
data.tar.gz: a82e826d09fd7367d4576d29121f4518da0728f1c379d6c853e2e5e50ccf8f28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47f9f9f7af85b9994a960d9ad4bddc3d2ff63817b70fcd57be0e6ecd960c905b44d5fc43e9e5585ac93129da421f8a5a7db5a5a86a03c536d8b83100dac037d4
|
7
|
+
data.tar.gz: 36573b20c82e56297de96d8fb694d418b202a8955ac438461395754088bcd1a50f04da57ada661ef401bb24926c7887b0bc16397675e8134ec7ea811102a51f8
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 4.2.0
|
2
|
+
- Added support for ECS v8 as alias for ECS v1 [#27](https://github.com/logstash-plugins/logstash-filter-clone/pull/27)
|
3
|
+
|
1
4
|
## 4.1.1
|
2
5
|
- [Doc] Add ECS mapping table [#25](https://github.com/logstash-plugins/logstash-filter-clone/pull/25)
|
3
6
|
- [DOC] Added note that a new type field is added to the clone [#23](https://github.com/logstash-plugins/logstash-filter-clone/pull/23)
|
data/docs/index.asciidoc
CHANGED
@@ -35,7 +35,7 @@ When ECS is enabled, the tag is stored in the `tags` array field.
|
|
35
35
|
Here’s how ECS compatibility mode affects output.
|
36
36
|
[cols="<l,<l,e,<e"]
|
37
37
|
|=======================================================================
|
38
|
-
| ECS disabled | ECS v1 | Availability | Description
|
38
|
+
| ECS disabled | ECS `v1`, `v8` | Availability | Description
|
39
39
|
|
40
40
|
| type | tags | Always | a tag of cloned event
|
41
41
|
|=======================================================================
|
@@ -74,7 +74,7 @@ Note: setting an empty array will not create any clones. A warning message is lo
|
|
74
74
|
* Value type is <<string,string>>
|
75
75
|
* Supported values are:
|
76
76
|
** `disabled`: does not use ECS-compatible field names
|
77
|
-
** `v1`: uses fields that are compatible with Elastic Common Schema
|
77
|
+
** `v1`, `v8`: uses fields that are compatible with Elastic Common Schema
|
78
78
|
* Default value depends on which version of Logstash is running:
|
79
79
|
** When Logstash provides a `pipeline.ecs_compatibility` setting, its value is used as the default
|
80
80
|
** Otherwise, the default value is `disabled`.
|
@@ -14,7 +14,7 @@ require "logstash/plugin_mixins/ecs_compatibility_support"
|
|
14
14
|
# to one of the values provided in its `clones` directive.
|
15
15
|
# ECS enabled: add a `tags` of each resulting event to one of the values provided in its `clones` directive.
|
16
16
|
class LogStash::Filters::Clone < LogStash::Filters::Base
|
17
|
-
include LogStash::PluginMixins::ECSCompatibilitySupport(:disabled, :v1)
|
17
|
+
include LogStash::PluginMixins::ECSCompatibilitySupport(:disabled, :v1, :v8 => :v1)
|
18
18
|
|
19
19
|
config_name "clone"
|
20
20
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-filter-clone'
|
4
|
-
s.version = '4.
|
4
|
+
s.version = '4.2.0'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Duplicates events"
|
7
7
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
data/spec/filters/clone_spec.rb
CHANGED
@@ -6,7 +6,7 @@ require 'logstash/plugin_mixins/ecs_compatibility_support/spec_helper'
|
|
6
6
|
describe LogStash::Filters::Clone do
|
7
7
|
|
8
8
|
describe "#filter", :ecs_compatibility_support, :aggregate_failures do
|
9
|
-
ecs_compatibility_matrix(:disabled, :v1) do |ecs_select|
|
9
|
+
ecs_compatibility_matrix(:disabled, :v1, :v8 => :v1) do |ecs_select|
|
10
10
|
|
11
11
|
subject { described_class.new(settings) }
|
12
12
|
let(:event) { LogStash::Event.new(input) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-clone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
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
|
@@ -97,8 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
|
-
|
101
|
-
rubygems_version: 2.6.13
|
100
|
+
rubygems_version: 3.1.6
|
102
101
|
signing_key:
|
103
102
|
specification_version: 4
|
104
103
|
summary: Duplicates events
|