logstash-filter-exceptioncategory 0.1.88 → 0.1.89

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05b3568499e5872956c2f4451158d65d87a83015
4
- data.tar.gz: f0056370afc0bb883ad2b576be11d43144bdcdb4
3
+ metadata.gz: 18f60edbdd8dd448a002090eff44935519d7811f
4
+ data.tar.gz: 3a35be0c6d247a679160197b9a1f1ab5c169db89
5
5
  SHA512:
6
- metadata.gz: fb236afb9a16a9021d3261d0445a56f71afabeaf30ffed18b349f28399ad67fdcd9dddb6e1c23a70e15afb0e8994337adea86bafeb214802161b97297fe2ded0
7
- data.tar.gz: ad9d7b0084af9ab4f071c78a922bb6d0a51804e3455346f6114b41d6a1ec9562dc27e50f9e7e139f185681b9ac9eb282884ee6bfece7eeb39724d7ed4645d77b
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["SagaException"]
35
- puts event["SagaException_Exception_ExceptionType"]
36
- puts event["SagaException"]["Exception"]["ExceptionType"]
34
+ puts event
37
35
 
38
- if event.include?("SagaException_Exception_ExceptionType")
36
+ if event["SagaException"].nil?
39
37
  event_exception = event["SagaException_Exception_ExceptionType"]
40
- elsif !event["SagaException"].nil?
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.88'
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."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-exceptioncategory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.88
4
+ version: 0.1.89
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ragnar Adolf Árnason