Translate filter to match the custom values

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??

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

1 Like

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