rocknsm / rock-dashboards

Dashboards and loader for ROCK NSM dashboards
http://rocknsm.io
Apache License 2.0
47 stars 17 forks source link

Undefined Method `split` #58

Closed peasead closed 4 years ago

peasead commented 4 years ago

Identified error in Logstash config causing

Apr 22 17:12:30 hostname logstash[26453]: [2020-04-22T17:12:30,189][ERROR][logstash.filters.ruby    ][main] Ruby exception occurred: undefined method `split' for ["urn:uuid:A92F6F89-B656-4DAD-B0F1-FE50FC973A22"]:Array

Commenting out

filter {
  if [client][ip] {
    # Make sure IP is valid, rfc check, private/public, and cleanup common things like preceeding "0" and or file share/path "\\"
#    ruby {
#      path => "/etc/logstash/conf.d/ruby/logstash-ruby-filter-ip_clean_and_public.rb"
#      script_params => {
#        "parent_field" => "[client]"
#        "ip" => "[client][ip]"
#      }
#      tag_on_exception =>  "_rubyexception-all-client_ip_clean_and_public"
#    }
...

in logstash-850-filter-ip_addresses-enrich.conf appears to fix this issue.

Will make a PR for this.

peasead commented 4 years ago

I just tested this on the pre-release candidate and I'm not seeing the error.