Translate filter to match the custom values


(Samta Malhotra) #1

I would like to use the translate filter dictionary plugin to define my custom values. It seems simple to use it, though is it possible to have something like this

translate {

 dictionary => [

"2",  "f",

"3",  "16e",

"9",  "bio",

"11",  "wrm",

"anything other than digits mentioned already",  "everything else"

 ]

  field => "format_id"
 destination => "mformat"

}

So, the question is, is it possible to do something like this, where we can define everything else field?? Or, a better way to have such matching??


Change null value from database for one field using logstash and insert into Elasticsearch
(Fabien Baligand) #2

The "fallback" option in translate filter is done for that :
https://www.elastic.co/guide/en/logstash/current/plugins-filters-translate.html#plugins-filters-translate-fallback


(system) #3

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