hpess-logstash-codec-cef 0.2.3 → 0.2.4
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 +4 -4
- data/lib/logstash/codecs/cef.rb +5 -0
- data/logstash-codec-cef.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6bf013f8503622bc42e5c2ce150e0aa053a6e9b
|
4
|
+
data.tar.gz: b7786433133b5ed5fbadaf744f325f50c9683df2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fecdb760d410d32a4124a48813fdef5a4d267a45f88df7e15fd1e285e6d2fce925910f3687354b4ff8f89333d69891ce00bc8950610b4d6f61546b4f327f44e1
|
7
|
+
data.tar.gz: aa30f813f02577ec9b3abb73e14d4de349dc8a917974830002b66ebbbb7d4337a237615ab2b37abf1ed80792e0a16844ed7125a632a4ba5050cfb3fea622a14e
|
data/lib/logstash/codecs/cef.rb
CHANGED
@@ -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? "="
|
data/logstash-codec-cef.gemspec
CHANGED
@@ -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.
|
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"
|