From 8a157a831b77329e0365ad82d63433424bdc3440 Mon Sep 17 00:00:00 2001 From: Miguel Negron Date: Mon, 30 Sep 2024 13:23:01 +0100 Subject: [PATCH] Fix error unknow -> unknown --- lib/logstash/filters/incident_enrichment.rb | 8 ++++---- logstash-filter-incident-enrichment.gemspec | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/logstash/filters/incident_enrichment.rb b/lib/logstash/filters/incident_enrichment.rb index df5abc5..3d4a7fe 100644 --- a/lib/logstash/filters/incident_enrichment.rb +++ b/lib/logstash/filters/incident_enrichment.rb @@ -111,9 +111,9 @@ def save_incident_relation(fields, incident_uuid, prefix) end def get_priority(event) - priority = (event.get(PRIORITY) || event.get(SEVERITY) || event.get(SYSLOGSEVERITY_TEXT) || 'unknow').downcase - unless ['critical', 'high', 'medium', 'low', 'none', 'unknow', 'info'].include?(priority) - priority = 'unknow' + priority = (event.get(PRIORITY) || event.get(SEVERITY) || event.get(SYSLOGSEVERITY_TEXT) || 'unknown').downcase + unless ['critical', 'high', 'medium', 'low', 'none', 'unknown', 'info'].include?(priority) + priority = 'unknown' end priority @@ -144,7 +144,7 @@ def get_key_prefix(event) def is_required_priority_or_above?(priority) priority_map = { 'info': 1, - 'unknow': 2, + 'unknown': 2, 'none': 3, 'low': 4, 'medium': 5, diff --git a/logstash-filter-incident-enrichment.gemspec b/logstash-filter-incident-enrichment.gemspec index 93cf296..6ddd75e 100644 --- a/logstash-filter-incident-enrichment.gemspec +++ b/logstash-filter-incident-enrichment.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'logstash-filter-incident-enrichment' - s.version = '0.0.4' + s.version = '0.0.5' s.licenses = ['Apache License (2.0)'] s.summary = "This filter is part of the redBorder enrich system. Create incidents into a cache, keep track of the relevant event fields and enrich the event when necessary." s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"