logstash-input-file 4.3.1 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1db5895e894194d27fa746f21e316c9bc8093f32d567023fd087e0be14a20839
4
- data.tar.gz: 8c98ccd955718ecd48c46809345b665ab4f47a5dc1fe40fccf3dacedb8618283
3
+ metadata.gz: 667711732af65c8b27c1bf3e455d78748d0b0c9365cc612df7aa29cc65fbbb58
4
+ data.tar.gz: 3f25446f513d8cb7a5619bd7e00333bcade1dbb6ccd8aeb061b991b14e91cb1c
5
5
  SHA512:
6
- metadata.gz: 3d7448a61c0b4a732ba1625318db1c0e18a19413f0cd283ca604ca9bd63ecd8af77f10df99e9cba85d4e70abfac493011b2867618b072b02baf656dd85dda18f
7
- data.tar.gz: fd7a0c304c711d12f2b89f1974a1d15a637fc01f721a7438144125cf3a30b2b0ed3e74b3b522ccefc1203d64daa8277f501238e351235142aa1b16b844ae88a2
6
+ metadata.gz: 371c56fb328a940b11047b88ded84ef2c17427ae706999dcdb15a674109be7515c952b67aadb692400e76fae9edf0fd5bfb6984a9b23f9fe00762ec618d88b25
7
+ data.tar.gz: b980a4595e55b90783f72f9f36240c0ac9f4a0aea998ab27ae6e2b5024474961f100349f6a044aee29826d7c94789829b1f3f1598bd204ba1b4edb0d90295fa8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 4.4.0
2
+ - Add support for ECS v8 [#301](https://github.com/logstash-plugins/logstash-input-file/pull/301)
3
+
1
4
  ## 4.3.1
2
5
  - Add extra safety to `chown` call in `atomic_write`, avoiding plugin crashes and falling back to a
3
6
  `non_atomic_write` in the event of failure [#295](https://github.com/logstash-plugins/logstash-input-file/pull/295)
data/docs/index.asciidoc CHANGED
@@ -87,7 +87,7 @@ This metadata is added after the event has been decoded by the appropriate codec
87
87
  and will never overwrite existing values.
88
88
 
89
89
  |========
90
- | ECS Disabled | ECS v1 | Description
90
+ | ECS Disabled | ECS `v1`, `v8` | Description
91
91
 
92
92
  | `host` | `[host][name]` | The name of the {ls} host that processed the event
93
93
  | `path` | `[log][file][path]` | The full path to the log file from which the event originates
@@ -264,7 +264,7 @@ In practice, this will be the best case because the time taken to read new conte
264
264
  * Value type is <<string,string>>
265
265
  * Supported values are:
266
266
  ** `disabled`: sets non-ECS metadata on event (such as top-level `host`, `path`)
267
- ** `v1`: sets ECS-compatible metadata on event (such as `[host][name]`, `[log][file][path]`)
267
+ ** `v1`,`v8`: sets ECS-compatible metadata on event (such as `[host][name]`, `[log][file][path]`)
268
268
  * Default value depends on which version of Logstash is running:
269
269
  ** When Logstash provides a `pipeline.ecs_compatibility` setting, its value is used as the default
270
270
  ** Otherwise, the default value is `disabled`.
Binary file
@@ -89,7 +89,7 @@ module LogStash module Inputs
89
89
  class File < LogStash::Inputs::Base
90
90
  config_name "file"
91
91
 
92
- include PluginMixins::ECSCompatibilitySupport(:disabled, :v1)
92
+ include PluginMixins::ECSCompatibilitySupport(:disabled, :v1, :v8 => :v1)
93
93
 
94
94
  # The path(s) to the file(s) to use as an input.
95
95
  # You can use filename patterns here, such as `/var/log/*.log`.
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-file'
4
- s.version = '4.3.1'
4
+ s.version = '4.4.0'
5
5
  s.licenses = ['Apache-2.0']
6
6
  s.summary = "Streams events from files"
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"
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
 
34
34
  s.add_runtime_dependency 'concurrent-ruby', '~> 1.0'
35
35
  s.add_runtime_dependency 'logstash-codec-multiline', ['~> 3.0']
36
- s.add_runtime_dependency 'logstash-mixin-ecs_compatibility_support', '~>1.1'
36
+ s.add_runtime_dependency 'logstash-mixin-ecs_compatibility_support', '~>1.3'
37
37
 
38
38
  s.add_development_dependency 'stud', ['~> 0.0.19']
39
39
  s.add_development_dependency 'logstash-devutils'
@@ -103,7 +103,7 @@ describe LogStash::Inputs::File do
103
103
 
104
104
 
105
105
  context "when path and host fields exist", :ecs_compatibility_support do
106
- ecs_compatibility_matrix(:disabled, :v1) do |ecs_select|
106
+ ecs_compatibility_matrix(:disabled, :v1, :v8 => :v1) do |ecs_select|
107
107
 
108
108
  before(:each) do
109
109
  allow_any_instance_of(described_class).to receive(:ecs_compatibility).and_return(ecs_compatibility)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-file
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1
4
+ version: 4.4.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-06-14 00:00:00.000000000 Z
11
+ date: 2021-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -91,7 +91,7 @@ dependencies:
91
91
  requirements:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: '1.1'
94
+ version: '1.3'
95
95
  name: logstash-mixin-ecs_compatibility_support
96
96
  prerelease: false
97
97
  type: :runtime
@@ -99,7 +99,7 @@ dependencies:
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '1.1'
102
+ version: '1.3'
103
103
  - !ruby/object:Gem::Dependency
104
104
  requirement: !ruby/object:Gem::Requirement
105
105
  requirements:
@@ -282,8 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
282
  - !ruby/object:Gem::Version
283
283
  version: '0'
284
284
  requirements: []
285
- rubyforge_project:
286
- rubygems_version: 2.6.13
285
+ rubygems_version: 3.1.6
287
286
  signing_key:
288
287
  specification_version: 4
289
288
  summary: Streams events from files