Skip to content

Commit

Permalink
work in progress for idaholab#393, fuzzy matching for manufacturers b…
Browse files Browse the repository at this point in the history
…ased on OUI to NetBox list is not very good
  • Loading branch information
mmguero committed Feb 13, 2024
1 parent 558ae6a commit bf28414
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions logstash/ruby/netbox_enrich.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,10 @@ def register(params)

# used for massaging OUI/manufacturer names for matching
@name_cleaning_patterns = [ /\ba[sbg]\b/,
/\bbeijing\b/,
/\b(beijing|shenzhen)\b/,
/\bbv\b/,
/\bco(rp(oration|orate)?)?\b/,
/\b(computer|network|electronic|solution|system)s?\b/,
/\bglobal\b/,
/\bgmbh\b/,
/\binc(orporated)?\b/,
Expand All @@ -225,8 +226,7 @@ def register(params)
/\boo\b/,
/\bsa\b/,
/\bsr[ol]s?\b/,
/\bshenzhen\b/,
/\bsystems?\b/ ]
/\btech(nolog(y|ie|iya)s?)?\b/ ]
end

def filter(event)
Expand Down

0 comments on commit bf28414

Please sign in to comment.