Your field reference is slightly malformed. Try this instead:
filter {
if [TEL] not in [TEL2] {
mutate {
merge => { "TEL2" => "TEL" }
}
}
if [telephone][fine][value] not in [TEL2] {
mutate {
merge => { "TEL2" => "telephone[fine][value]" }
}
}
mutate {
join => { "TEL2" => "," }
}
}
output {
stdout { codec => rubydebug }
}
You can also replicate that exact function with some ruby code, where you can use Sets (that by default only contain unique values), in order to avoid checks so the code is more compact.
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.