Skip to content

Commit 03d43bc

Browse files
authored
ecs: add v8 alias to v1 implementation (#21)
1 parent 87e8d67 commit 03d43bc

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.4.0
2+
- Add ECS v8 support as alias of v1 implementation
3+
14
## 3.3.0
25
- Feat: ECS support + review dependencies [#20](https://github.com/logstash-plugins/logstash-input-stdin/pull/20)
36

docs/index.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ input plugins.
4949
* Value type is <<string,string>>
5050
* Supported values are:
5151
** `disabled`: does not use ECS-compatible field names (using `host` field to store host name)
52-
** `v1`: uses fields that are compatible with Elastic Common Schema (using `[host][hostname]`)
52+
** `v1`,`v8`: uses fields that are compatible with Elastic Common Schema (using `[host][hostname]`)
5353
* Default value depends on which version of Logstash is running:
5454
** When Logstash provides a `pipeline.ecs_compatibility` setting, its value is used as the default
5555
** Otherwise, the default value is `disabled`.

lib/logstash/inputs/stdin.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# By default, each event is assumed to be one line. If you
1111
# want to join lines, you'll want to use the multiline codec.
1212
class LogStash::Inputs::Stdin < LogStash::Inputs::Base
13-
include LogStash::PluginMixins::ECSCompatibilitySupport(:disabled, :v1)
13+
include LogStash::PluginMixins::ECSCompatibilitySupport(:disabled, :v1, :v8 => :v1)
1414

1515
config_name "stdin"
1616

logstash-input-stdin.gemspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |s|
22

33
s.name = 'logstash-input-stdin'
4-
s.version = '3.3.0'
4+
s.version = '3.4.0'
55
s.licenses = ['Apache License (2.0)']
66
s.summary = "Reads events from standard input"
77
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"
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
2121

2222
# Gem dependencies
2323
s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
24-
s.add_runtime_dependency 'logstash-mixin-ecs_compatibility_support', '~> 1.1'
24+
s.add_runtime_dependency 'logstash-mixin-ecs_compatibility_support', '~> 1.2'
2525
s.add_runtime_dependency "logstash-codec-line"
2626
s.add_runtime_dependency "jruby-stdin-channel"
2727

spec/inputs/stdin_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
subject { LogStash::Inputs::Stdin.new }
3636

37-
ecs_compatibility_matrix(:v1) do
37+
ecs_compatibility_matrix(:v1, :v8 => :v1) do
3838

3939
before(:each) do
4040
allow_any_instance_of(described_class).to receive(:ecs_compatibility).and_return(ecs_compatibility)

0 commit comments

Comments
 (0)