logstash-input-gelf 3.2.0 → 3.3.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: 998fc138bf6014e94c8a76e60c3e3cfebc544b73b83266d5e9e84ae23b3a5f1d
4
- data.tar.gz: 83766fd3878863f1dda826243124f3a3b7358a5b55386456a314226cbfa4508e
3
+ metadata.gz: b0ebf9126f1859a71a229c979b174d0f86708712c50f6c910d1875001b80dccf
4
+ data.tar.gz: b68501110c7abe9189de546007d7b3cf0129a026abe16f7f32b916e98072427e
5
5
  SHA512:
6
- metadata.gz: ee88a28f662343cd752f7294a5f37fa1e275e3e5c2a39d946b18d42dc4c8a3d0e77df04cc2b3251b451442789c51afabdd18483f1263f91a25ff1f83249bb2aa
7
- data.tar.gz: 38b4765dd2304e76590edb04f37184f450f2bca548a09f45e82b3881f5b1dc2a899cdce08537898fe7dc6b1481ca657b560e21ef44745b9bb98ae6e1c9212ef8
6
+ metadata.gz: 52197e23331c862536a6ca032c2ab92864f2e57e6f6e270b173f33015d0f94629a0532072ae5dcea1959f363745ac1c60177629181ecedf37c71936da62b615b
7
+ data.tar.gz: 6efe2d2372eb7d69474880fadce7f679f4a3166634a82a9d7549498c9c54bbeef102506810126461a8d0a189e474270e8345da7ec08ad35e1ad2e783f99ab088
@@ -1,3 +1,6 @@
1
+ ## 3.3.0
2
+ - Updated library to gelfd2 [#48](https://github.com/logstash-plugins/logstash-input-gelf/pull/48)
3
+
1
4
  ## 3.2.0
2
5
  - Fixed shutdown handling, robustness in socket closing and restarting, json parsing, code DRYing and cleanups [62](https://github.com/logstash-plugins/logstash-input-gelf/pull/62)
3
6
 
@@ -25,15 +25,7 @@ This input will read GELF messages as events over the network,
25
25
  making it a good choice if you already use Graylog2 today.
26
26
 
27
27
  The main use case for this input is to leverage existing GELF
28
- logging libraries such as the GELF log4j appender. A library used
29
- by this plugin has a bug which prevents it parsing uncompressed data.
30
- If you use the log4j appender you need to configure it like this to force
31
- gzip even for small messages:
32
-
33
- <Socket name="logstash" protocol="udp" host="logstash.example.com" port="5001">
34
- <GelfLayout compressionType="GZIP" compressionThreshold="1" />
35
- </Socket>
36
-
28
+ logging libraries such as the GELF log4j appender.
37
29
 
38
30
 
39
31
  [id="plugins-{type}s-{plugin}-options"]
@@ -141,4 +133,4 @@ e.g. `\_foo` becomes `foo`
141
133
  [id="plugins-{type}s-{plugin}-common-options"]
142
134
  include::{include_path}/{type}.asciidoc[]
143
135
 
144
- :default_codec!:
136
+ :default_codec!:
@@ -12,16 +12,8 @@ require "json"
12
12
  # making it a good choice if you already use Graylog2 today.
13
13
  #
14
14
  # The main use case for this input is to leverage existing GELF
15
- # logging libraries such as the GELF log4j appender. A library used
16
- # by this plugin has a bug which prevents it parsing uncompressed data.
17
- # If you use the log4j appender you need to configure it like this to force
18
- # gzip even for small messages:
19
- #
20
- # <Socket name="logstash" protocol="udp" host="logstash.example.com" port="5001">
21
- # <GelfLayout compressionType="GZIP" compressionThreshold="1" />
22
- # </Socket>
23
- #
24
- #
15
+ # logging libraries such as the GELF log4j appender.
16
+
25
17
  class LogStash::Inputs::Gelf < LogStash::Inputs::Base
26
18
  config_name "gelf"
27
19
 
@@ -73,7 +65,7 @@ class LogStash::Inputs::Gelf < LogStash::Inputs::Base
73
65
  end
74
66
 
75
67
  def register
76
- require 'gelfd'
68
+ require 'gelfd2'
77
69
  @port_tcp ||= @port
78
70
  @port_udp ||= @port
79
71
  end
@@ -202,7 +194,7 @@ class LogStash::Inputs::Gelf < LogStash::Inputs::Base
202
194
  end
203
195
 
204
196
  begin
205
- data = Gelfd::Parser.parse(line)
197
+ data = Gelfd2::Parser.parse(line)
206
198
  rescue => ex
207
199
  @logger.warn("Gelfd failed to parse a message skipping", :exception => ex, :backtrace => ex.backtrace)
208
200
  next
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-gelf'
4
- s.version = '3.2.0'
4
+ s.version = '3.3.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Reads GELF-format messages from Graylog2 as 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"
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  # Gem dependencies
23
23
  s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
24
24
 
25
- s.add_runtime_dependency "gelfd", ["0.2.0"] #(Apache 2.0 license)
25
+ s.add_runtime_dependency "gelfd2", ["0.4.1"] #(Apache 2.0 license)
26
26
  s.add_runtime_dependency 'logstash-codec-plain'
27
27
  s.add_runtime_dependency 'stud', '>= 0.0.22', '< 0.1.0'
28
28
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-gelf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-12 00:00:00.000000000 Z
11
+ date: 2019-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -35,15 +35,15 @@ dependencies:
35
35
  requirements:
36
36
  - - '='
37
37
  - !ruby/object:Gem::Version
38
- version: 0.2.0
39
- name: gelfd
38
+ version: 0.4.1
39
+ name: gelfd2
40
40
  prerelease: false
41
41
  type: :runtime
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - '='
45
45
  - !ruby/object:Gem::Version
46
- version: 0.2.0
46
+ version: 0.4.1
47
47
  - !ruby/object:Gem::Dependency
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  requirements: