# Translate filter with more than one input field

**URL:** https://discuss.elastic.co/t/translate-filter-with-more-than-one-input-field/96104
**Category:** Logstash
**Created:** [August 7, 2017, 12:30pm UTC](https://discuss.elastic.co/t/translate-filter-with-more-than-one-input-field/96104 "2017-08-07T12:30:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AHurtado](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahurtado/32/20867_2.png) [@AHurtado](https://discuss.elastic.co/u/AHurtado)
#### Post date: [August 7, 2017, 12:30pm UTC](https://discuss.elastic.co/t/translate-filter-with-more-than-one-input-field/96104/1 "2017-08-07T12:30:40Z")

</div>

Hi,

Related to another question I uploaded, and related to translate filters, is it possible to use translate filters with more than one field as input?

For example, I have this example:

translate {  
dictionary\_path =\> "/etc/logstash/conf.d/tmb/enr\_missatge\_codi.csv"  
field =\> "gStrClasse"  
destination =\> "[@metadata][extra\_info]"  
}

My extra\_info field depends on 'gStrClasse' value. But can it depend on the combination of 'gStrClasse' and (for instance) another field called 'gStrTipus'? Something like "if gStrClasse==3 and 'gStrTipus'==5 then 'extra\_info'='value\_for\_case\_3\_and\_5'...

And extending my question, can I use wildcards in 'gStrClasse' or 'gStrTipus' field?

Thanks,

Albert

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 4, 2017, 12:30pm UTC](https://discuss.elastic.co/t/translate-filter-with-more-than-one-input-field/96104/2 "2017-09-04T12:30:47Z")

</div>

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