What is the equivalent of grock parse failure for a ruby script

Hi I want to make shure that what I send to logstash doesnt contain errors so I wan to add something similar to grokparse failure , but for ruby.

output {
            if "_grokparsefailure" not in [tags] {
                  if "_ruby ???????????" not in [tags]{}
        }
}

Look at the documentation for tag_on_exception.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.