# How to reference value of field in translate?

**URL:** <https://discuss.elastic.co/t/how-to-reference-value-of-field-in-translate/207561>\
**Category:** Logstash\
**Created:** [November 12, 2019, 4:32pm UTC](https://discuss.elastic.co/t/how-to-reference-value-of-field-in-translate/207561 "2019-11-12T16:32:30Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![manud](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@manud](https://discuss.elastic.co/u/manud)\
**Post date:** [November 13, 2019, 3:32am UTC](https://discuss.elastic.co/t/how-to-reference-value-of-field-in-translate/207561/16 "2019-11-13T03:32:31Z")

</div>

If you're willing to transform your translate data a bit you could structure the file like:

```auto
Apple_12345: macbook
Apple_12346: iphone
Dell_12345: laptop

```

Then construct a new field to use for your translate:

```auto
translate {
    add_field => { "lookup" => "%{brand}_%{part_number}" }
    field => "lookup"
    destination => "model"
    dictionary_path => "translate_file.yml"
    remove_field => ["lookup"]
}

```

---

_[View the full topic](https://discuss.elastic.co/t/how-to-reference-value-of-field-in-translate/207561)._
