Skip to content

Commit

Permalink
Fix error unknow -> unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
manegron committed Sep 30, 2024
1 parent e35a55d commit 8a157a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/logstash/filters/incident_enrichment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion logstash-filter-incident-enrichment.gemspec
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 8a157a8

Please sign in to comment.