Hello.
I would like to compare 2 fields using logstash.
To be more precise, i would like to know id the content of one field is included into the other one, using ( regex)
i tried this configuration
if ( [test][field1] and [test][field2]){
if ([test][field2] =~ /.*%{[test][field1]}/) {
mutate {
add_field => { "DiffRegexp" => "true" }
}
}
}
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.