hpess-logstash-codec-cef 0.2.3 → 0.2.4

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
  SHA1:
3
- metadata.gz: c287dd3576191cc4b0f27fe4ac529cec64f12b42
4
- data.tar.gz: 4b8f9859909d202ec096f3c97f72ae912c09baf4
3
+ metadata.gz: a6bf013f8503622bc42e5c2ce150e0aa053a6e9b
4
+ data.tar.gz: b7786433133b5ed5fbadaf744f325f50c9683df2
5
5
  SHA512:
6
- metadata.gz: c263325b4df63f22365d9fca7fc9367431d3e67b987db11e352c41b9daf9d6f8b67449f301790fdd5ddbcc9756ba40f635843da905856c8f4f6cbed148c53edc
7
- data.tar.gz: 112626e93fab1469bb9bb1130c663485fc1d31576e5b6fa78b493be4178f650475da043f3178b0b19d37467ed95dc1bdf8847dffe0f62c265fd30b835a43430c
6
+ metadata.gz: fecdb760d410d32a4124a48813fdef5a4d267a45f88df7e15fd1e285e6d2fce925910f3687354b4ff8f89333d69891ce00bc8950610b4d6f61546b4f327f44e1
7
+ data.tar.gz: aa30f813f02577ec9b3abb73e14d4de349dc8a917974830002b66ebbbb7d4337a237615ab2b37abf1ed80792e0a16844ed7125a632a4ba5050cfb3fea622a14e
@@ -36,6 +36,11 @@ class LogStash::Codecs::CEF < LogStash::Codecs::Base
36
36
  # Strip any whitespace from the message
37
37
  message = message.to_s.strip
38
38
 
39
+ # If the last KVP has no value, add an empty string, this prevents hash errors below
40
+ if message[-1, 1] == "="
41
+ message=message + ' '
42
+ end
43
+
39
44
  # Now parse the key value pairs into it
40
45
  extensions = {}
41
46
  if message.length != 0 and message.include? "="
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'hpess-logstash-codec-cef'
4
- s.version = '0.2.3'
4
+ s.version = '0.2.4'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "CEF codec to parse CEF formated logs"
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/plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hpess-logstash-codec-cef
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elasticsearch