hpess-logstash-codec-cef 0.2.0 → 0.2.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 +4 -4
- data/lib/logstash/codecs/cef.rb +1 -1
- data/logstash-codec-cef.gemspec +1 -1
- data/spec/codecs/cef_spec.rb +3 -3
- 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: 81a21440a62cb5391b36db282d926053bba698cb
|
4
|
+
data.tar.gz: 6186ee0d447ca21d76e74312b31ff7105be48b8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64823415d3340bff3627b6bd7ee5fd1acc4c5fa0b3baa31b397697d1f976c0f8975c0a6d89d0100060339ce0ff044df6b7155f37ef4bcd1c87d40d0612f0fff0
|
7
|
+
data.tar.gz: 2d308146c252b6ae4decd9a0318a39c6191e7f096f43610551c409633137726082df60df65b9d04210b346fd8a134608da96939a7b1bccd7f2e3d2985458c7c5
|
data/lib/logstash/codecs/cef.rb
CHANGED
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.1'
|
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"
|
data/spec/codecs/cef_spec.rb
CHANGED
@@ -28,7 +28,7 @@ describe LogStash::Codecs::CEF do
|
|
28
28
|
it "should parse the cef headers" do
|
29
29
|
subject.decode(message) do |e|
|
30
30
|
validate(e)
|
31
|
-
ext = e['
|
31
|
+
ext = e['cef_ext']
|
32
32
|
insist { e["cef_vendor"] } == "security"
|
33
33
|
insist { e["cef_product"] } == "threatmanager"
|
34
34
|
end
|
@@ -36,7 +36,7 @@ describe LogStash::Codecs::CEF do
|
|
36
36
|
|
37
37
|
it "should parse the cef body" do
|
38
38
|
subject.decode(message) do |e|
|
39
|
-
ext = e['
|
39
|
+
ext = e['cef_ext']
|
40
40
|
insist { ext['src'] } == "10.0.0.192"
|
41
41
|
insist { ext['dst'] } == "12.121.122.82"
|
42
42
|
insist { ext['spt'] } == "1232"
|
@@ -62,7 +62,7 @@ describe LogStash::Codecs::CEF do
|
|
62
62
|
let (:escaped_pipes) { 'CEF:0|security|threatmanager|1.0|100|trojan successfully stopped|10|moo=this\|has an escaped pipe' }
|
63
63
|
it "should be OK with escaped pipes in the message" do
|
64
64
|
subject.decode(escaped_pipes) do |e|
|
65
|
-
ext = e['
|
65
|
+
ext = e['cef_ext']
|
66
66
|
insist { ext['moo'] } == 'this\|has an escaped pipe'
|
67
67
|
end
|
68
68
|
end
|