logstash-filter-exceptioncategory 0.1.88 → 0.1.89
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18f60edbdd8dd448a002090eff44935519d7811f
|
4
|
+
data.tar.gz: 3a35be0c6d247a679160197b9a1f1ab5c169db89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52e2c329df0d7a8c52a22e43418a319a17a1393fb57378871a6d8373a52745817fe866f3d7492bf35be6685fbee49e22c0103b9be7e978f6b611d21ea04fe2e3
|
7
|
+
data.tar.gz: 1d4763c5d4bda115ec00189179d5b4915372ab4b8682b99fc32ab44b7dc6234979a109e1f1fe935e4b1b61ec0239df8d446a1c91d69804e3e4682c649c301631
|
@@ -31,15 +31,20 @@ class LogStash::Filters::ExceptionCategory < LogStash::Filters::Base
|
|
31
31
|
#@logger.debug? && @logger.debug("EVENT: ")
|
32
32
|
#@logger.debug? && @logger.debug(event)
|
33
33
|
puts "EVENT:::::"
|
34
|
-
puts event
|
35
|
-
puts event["SagaException_Exception_ExceptionType"]
|
36
|
-
puts event["SagaException"]["Exception"]["ExceptionType"]
|
34
|
+
puts event
|
37
35
|
|
38
|
-
if event.
|
36
|
+
if event["SagaException"].nil?
|
39
37
|
event_exception = event["SagaException_Exception_ExceptionType"]
|
40
|
-
|
38
|
+
else
|
41
39
|
event_exception = event["SagaException"]["Exception"]["ExceptionType"]
|
42
40
|
end
|
41
|
+
|
42
|
+
|
43
|
+
#if event.include?("SagaException_Exception_ExceptionType")
|
44
|
+
# event_exception = event["SagaException_Exception_ExceptionType"]
|
45
|
+
#elsif !event["SagaException"].nil?
|
46
|
+
# event_exception = event["SagaException"]["Exception"]["ExceptionType"]
|
47
|
+
#end
|
43
48
|
|
44
49
|
unless categories.key?(event_exception)
|
45
50
|
event_exception = event["Title"]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'logstash-filter-exceptioncategory'
|
5
|
-
s.version = '0.1.
|
5
|
+
s.version = '0.1.89'
|
6
6
|
s.licenses = ['Apache-2.0']
|
7
7
|
s.summary = "Categorizes exceptions"
|
8
8
|
s.description = "Fetches a remote json file which includes categorization of exceptions. Uses that categorization to attach a category to an event depending on which exception the event has."
|