Using numbers in conditionals leads to fatal "java.lang.ClassCastException: class org.jruby.RubyFixnum cannot be cast to class java.lang.Long"

Now I understand the problem:

mutate {
        convert => {
          " someField" => "integer"
          " someOtherField" => "integer"
        }
      }

"mutate convert to integer" has to be in the same pipeline together with the conditional statement. I'm using pipeline-to-pipeline communication with JSON codec in "input" and "mutate convert to integer" was in pipeline upstream of the conditional statement.

1 Like