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" }
}
}
}
However, That 's not working.
Any help would be appreciated
Thanks !
