Exception in pipelineworker, the pipeline stopped processing new events, please check your filter configuration and restart Logstash. {"exception"=>#<NoMethodError: undefined method `>=' for nil:NilClass>, ...
This simply adds a field called score and sets it to "20.0" (a string). It then mutates it into a float value.
It does a comparison to see if [score] >= 10, and adds the field greater with the value of "yes" if it is (and 20 is definitely greater than 10), and "no" if it isn't. This is the output I got:
As you can see, the asdf I typed is message, and the other fields were added and the >= test worked as expected.
The question is why you're seeing something different. It's hard to guess, since the error posted to the issue is truncated. It will give that error if you try to compare a string to an integer (and it will say so in the full error).
I know in your JSON there that score is a numeric value, but does Logstash see it as such?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.