logstash-input-heartbeat 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d335bd56b5ab7b240316bd8348dd05ad386dc5956dab0ec518b956967f6b89a
4
- data.tar.gz: 625150053c13c2d1ec751c981e0c9c7f41b19c326a8d304934a5ebbb26808cea
3
+ metadata.gz: 817e131d53d50b64abb6f9183d0c1fb032374db499af5fc202c98ab18659647c
4
+ data.tar.gz: 982ffbba89a6ece2f0d5d2a79f73b2452b7845601147df6a36105b8553d8d2c7
5
5
  SHA512:
6
- metadata.gz: 25027365f2339d553cc85d38ab5a1a28e149f1d933905bd840f4d2f0dbacdc1091f958858ae5644002c2a8764a176f157c809b50307497b4f29cd065cd0d0e0b
7
- data.tar.gz: 88ce2b8e907b1ad815126736b219658456af1bb273a90f3b2f64264b1990ad87e4d996f83b982a7b3ee9ab77cc79df88217774b3b21ee18a3b8d71adc9ca4362
6
+ metadata.gz: 972fd95504786ca81f615440d472e06b98585235c3f9d0098584875b12777761a0d8d9c9d54baafbebf6727d31f53283ab7c43d295f95bdb2f63f4500184bfe4
7
+ data.tar.gz: 7c69ed49963e15d13d82cd8fe86c307469c4f96138ff9fa3130fd667558c2165ef26440b65b6966179c34db2f4775e1e4f3dbf157fbf13dcd622660b1048e990
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 3.1.1
2
+ - Docs: added information on ECS v8 support [#19](https://github.com/logstash-plugins/logstash-input-heartbeat/pull/19)
3
+
1
4
  ## 3.1.0
2
5
  - Added new `sequence` setting to manage the type of sequence generator and added ECS
3
6
  compatibility behavior [#18](https://github.com/logstash-plugins/logstash-input-heartbeat/pull/18)
data/docs/index.asciidoc CHANGED
@@ -41,7 +41,7 @@ The existing `host` field is moved to `[host][name]` when ECS is enabled.
41
41
 
42
42
  [cols="<l,<l,e,<e"]
43
43
  |============================================================================================================
44
- |`disabled` |`v1` |Availability |Description
44
+ |`disabled` |`v1`, `v8` |Availability |Description
45
45
 
46
46
  |[host] |[host][name] |Always |Name or address of the host is running the plugin
47
47
  |[clock] |[event][sequence] |When `sequence` setting enables it |Increment counter based on seconds or from local 0 based counter
@@ -83,7 +83,7 @@ This is typically used only for testing purposes.
83
83
  * Value type is <<string,string>>
84
84
  * Supported values are:
85
85
  ** `disabled`: `clock` counter field added at root level
86
- ** `v1`: ECS compliant `[event][sequence]` counter field added to the event
86
+ ** `v1`,`v8`: ECS compliant `[event][sequence]` counter field added to the event
87
87
  * Default value depends on which version of Logstash is running:
88
88
  ** When Logstash provides a `pipeline.ecs_compatibility` setting, its value is used as the default
89
89
  ** Otherwise, the default value is `disabled`.
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-heartbeat'
4
- s.version = '3.1.0'
4
+ s.version = '3.1.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Generates heartbeat events for testing"
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"
@@ -118,19 +118,22 @@ describe LogStash::Inputs::Heartbeat do
118
118
  end # it "should return an event with the current time (as epoch)"
119
119
  end # context "Epoch test"
120
120
 
121
- shared_examples "use hostname field with ECS" do |ecs_compatibility, field_name|
122
- subject { LogStash::Inputs::Heartbeat.new({"ecs_compatibility" => ecs_compatibility}) }
121
+ shared_examples "host name respects ECS setting" do |ecs_compatibility, field_name|
122
+ context "when ECS compatibility is `#{ecs_compatibility}`" do
123
+ subject { LogStash::Inputs::Heartbeat.new({"ecs_compatibility" => ecs_compatibility}) }
123
124
 
124
- before(:each) do
125
- subject.register
126
- end
125
+ before(:each) do
126
+ subject.register
127
+ end
127
128
 
128
- it "should populate #{field_name}" do
129
- evt = subject.generate_message(sequence)
130
- expect(evt.get(field_name)).to eq(Socket.gethostname)
129
+ it "populates the host name into `#{field_name}`" do
130
+ evt = subject.generate_message(sequence)
131
+ expect(evt.get(field_name)).to eq(Socket.gethostname)
132
+ end
131
133
  end
132
134
  end
133
135
 
134
- it_behaves_like "use hostname field with ECS", :disabled, "host"
135
- it_behaves_like "use hostname field with ECS", :v1, "[host][name]"
136
+ it_behaves_like "host name respects ECS setting", :disabled, "host"
137
+ it_behaves_like "host name respects ECS setting", :v1, "[host][name]"
138
+ it_behaves_like "host name respects ECS setting", :v8, "[host][name]"
136
139
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-heartbeat
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-01 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
@@ -154,8 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0'
156
156
  requirements: []
157
- rubyforge_project:
158
- rubygems_version: 2.6.13
157
+ rubygems_version: 3.1.6
159
158
  signing_key:
160
159
  specification_version: 4
161
160
  summary: Generates heartbeat events for testing