logstash-output-gelf 3.0.1 → 3.1.1

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
  SHA1:
3
- metadata.gz: 867030267754d5e0a41de1ff447f43e1d5f60810
4
- data.tar.gz: 8056b77f55e02692048436443ddd6e3285e80457
3
+ metadata.gz: c85e4fc1204d58a6f63c416a2ea7e094ce47d449
4
+ data.tar.gz: d88023bd2e24e1e9fa96d47b2a450ec465e38c32
5
5
  SHA512:
6
- metadata.gz: 684c9950a738e2cb5bb17fbe4442d7bc89dc35520e80e193bcdbc95e7a80fc6f3212f2db8769a4e6f5c15d0ffc55dcd781cf284f047927aaef0194ca57706819
7
- data.tar.gz: 847cda71f2dbeba53702cbcb38a67bc93b07cbb8ea693cbc4c7d87e6f7fc251d7fc75020bbff39e27905d95dfe6dd5f3cdf9e9098146bdfedbb2b58591278788
6
+ metadata.gz: dae679aa6e45345b056a1a824874eef58898805ade5b208c44b75855e3481349116d6dd8cb76504f0069fc1de14675157559d1dde5970072163b2209dcc1f257
7
+ data.tar.gz: db4d8e77e06b10798b2f06228a3ed46e2dd12e4a5991b858558bf990c48fa6a5632a32f60b114db1b2efe86e4d149d1e5f1569d387bbe784cb24bd60e5748370
@@ -1,11 +1,22 @@
1
+ ## 3.1.1
2
+ - Relax constraint on logstash-core-plugin-api to >= 1.60 <= 2.99
3
+
4
+ ## 3.1.0
5
+ - breaking,config: Remove deprecated config `facility` and `file`, please add the necessary into `custom_fields` configuration so they are send as `_`-fields
6
+ - breaking,config: Remove deprecated config `line`, please add it into `custom_fields` configuration so it is send as `_`-field. Please also ensure to convert it to integer upfront.
7
+
1
8
  ## 3.0.1
2
- - Republish all the gems under jruby.
9
+ - Republish all the gems under jruby.
10
+
3
11
  ## 3.0.0
4
- - Update the plugin to the version 2.0 of the plugin api, this change is required for Logstash 5.0 compatibility. See https://github.com/elastic/logstash/issues/5141
5
- # 2.0.5
6
- - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
7
- # 2.0.4
8
- - New dependency requirements for logstash-core for the 5.0 release
12
+ - Update the plugin to the version 2.0 of the plugin api, this change is required for Logstash 5.0 compatibility. See https://github.com/elastic/logstash/issues/5141
13
+
14
+ ## 2.0.5
15
+ - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
16
+
17
+ ## 2.0.4
18
+ - New dependency requirements for logstash-core for the 5.0 release
19
+
9
20
  ## 2.0.3
10
21
  - Fix crash when level is number
11
22
 
@@ -14,5 +25,5 @@
14
25
  instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
15
26
  - Dependency on logstash-core update to 2.0
16
27
 
17
- # 1.1.0
18
- - Add test to the project
28
+ ## 1.1.0
29
+ - Add test to the project
@@ -38,22 +38,6 @@ class LogStash::Outputs::Gelf < LogStash::Outputs::Base
38
38
  # "informational".
39
39
  config :level, :validate => :array, :default => [ "%{severity}", "INFO" ]
40
40
 
41
- # The GELF facility. Dynamic values like `%{foo}` are permitted here; this
42
- # is useful if you need to use a value from the event as the facility name.
43
- # Should now be sent as an underscored "additional field" (e.g. `\_facility`)
44
- config :facility, :validate => :string, :deprecated => true
45
-
46
- # The GELF line number; this is usually the line number in your program where
47
- # the log event originated. Dynamic values like `%{foo}` are permitted here, but the
48
- # value should be a number.
49
- # Should now be sent as an underscored "additional field" (e.g. `\_line`).
50
- config :line, :validate => :string, :deprecated => true
51
-
52
- # The GELF file; this is usually the source code file in your program where
53
- # the log event originated. Dynamic values like `%{foo}` are permitted here.
54
- # Should now be sent as an underscored "additional field" (e.g. `\_file`).
55
- config :file, :validate => :string, :deprecated => true
56
-
57
41
  # Should Logstash ship metadata within event object? This will cause Logstash
58
42
  # to ship any fields in the event (such as those created by grok) in the GELF
59
43
  # messages. These will be sent as underscored "additional fields".
@@ -154,12 +138,6 @@ class LogStash::Outputs::Gelf < LogStash::Outputs::Base
154
138
 
155
139
  m["host"] = event.sprintf(@sender)
156
140
 
157
- # deprecated fields
158
- m["facility"] = event.sprintf(@facility) if @facility
159
- m["file"] = event.sprintf(@file) if @file
160
- m["line"] = event.sprintf(@line) if @line
161
- m["line"] = m["line"].to_i if m["line"].is_a?(String) and m["line"] === /^[\d]+$/
162
-
163
141
  if @ship_metadata
164
142
  event.to_hash.each do |name, value|
165
143
  next if value == nil
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-gelf'
4
- s.version = '3.0.1'
4
+ s.version = '3.1.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This output generates messages in GELF format."
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"
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
21
21
 
22
22
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
23
+ s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
24
24
 
25
25
  s.add_runtime_dependency 'gelf', ['1.3.2']
26
26
  s.add_runtime_dependency 'logstash-codec-plain'
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-gelf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
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: 2016-05-09 00:00:00.000000000 Z
11
+ date: 2016-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - "~>"
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '1.60'
19
+ - - "<="
17
20
  - !ruby/object:Gem::Version
18
- version: '2.0'
21
+ version: '2.99'
19
22
  name: logstash-core-plugin-api
20
23
  prerelease: false
21
24
  type: :runtime
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1.60'
30
+ - - "<="
25
31
  - !ruby/object:Gem::Version
26
- version: '2.0'
32
+ version: '2.99'
27
33
  - !ruby/object:Gem::Dependency
28
34
  requirement: !ruby/object:Gem::Requirement
29
35
  requirements:
@@ -104,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
110
  version: '0'
105
111
  requirements: []
106
112
  rubyforge_project:
107
- rubygems_version: 2.4.8
113
+ rubygems_version: 2.6.3
108
114
  signing_key:
109
115
  specification_version: 4
110
116
  summary: This output generates messages in GELF format.