I'd like to know how I can check in an if-condition in Logstash, is a field's value (in the example below the field is named "complete") starts with the value of another field (in the example below the field is named "starts_with").
I tried
if [complete] =~ /^[starts_with].*/ {
...
}
This sounds like a simple task, but maybe it's just too late for me. Do you have a syntax hint?
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.