logstash-filter-exceptioncategory 0.1.73 → 0.1.74
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: b14bd3f117b750b9205dd03df97a2a52984a4068
|
4
|
+
data.tar.gz: 64150c562e76efff136cbbec657681729e363afa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e02113d327fd918e93153859690b73e77f58a60f72eafebae7e684ea81e4fda83cf321daf53b5dc5492e45be5a11eaf6e5a15020d14b43f09d62dd7f8a1b986d
|
7
|
+
data.tar.gz: c7af4453b121404283da091ff96f4d403682f09b8751aca8fdc5c914073be5e4de77bcfdc9f454329c2a76e9a22e5ab91d85fa4f2c4e0e728b426984c7367a0c
|
@@ -30,8 +30,10 @@ class LogStash::Filters::ExceptionCategory < LogStash::Filters::Base
|
|
30
30
|
@logger.debug("Event is now: #{event}")
|
31
31
|
@logger.debug("Event class: #{event.class}")
|
32
32
|
|
33
|
-
if(event.include?("SagaException")
|
34
|
-
|
33
|
+
if(event.include?("SagaException"))
|
34
|
+
if(event["SagaException"].include?("Exception"))
|
35
|
+
event_exception = event["SagaException"]["Exception"]["ExceptionType"]
|
36
|
+
end
|
35
37
|
end
|
36
38
|
|
37
39
|
unless categories.key?(event_exception)
|
@@ -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.74'
|
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."
|