# Logstash Data Enhancement

**URL:** <https://discuss.elastic.co/t/logstash-data-enhancement/131949>\
**Category:** Logstash\
**Created:** [May 15, 2018, 2:09pm UTC](https://discuss.elastic.co/t/logstash-data-enhancement/131949 "2018-05-15T14:09:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![satya\_sandeep](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@satya\_sandeep](https://discuss.elastic.co/u/satya_sandeep)\
**Post date:** [May 15, 2018, 2:09pm UTC](https://discuss.elastic.co/t/logstash-data-enhancement/131949/1 "2018-05-15T14:09:07Z")

</div>

I have a kafka -ES pipeline running , i want to add new fields basing on a certain field e.g  
i have the following parameters from kafka:  
{  
"id":1,  
"name":"name1"}  
now depending on the id i want to add department to the same pipeline i have a 100 id's previously I had done manually by If filter where in i check id manually ,  
I want to know a better way to do lookup from a file and enhance data.  
CSV Sample:  
1,"sales"  
2,"reception" e.t.c

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 15, 2018, 2:21pm UTC](https://discuss.elastic.co/t/logstash-data-enhancement/131949/2 "2018-05-15T14:21:43Z")

</div>

The [translate](https://www.elastic.co/guide/en/logstash/current/plugins-filters-translate.html) filter will do that.

---

<div class="post-metadata">

**Author:** ![satya\_sandeep](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@satya\_sandeep](https://discuss.elastic.co/u/satya_sandeep)\
**Post date:** [May 16, 2018, 10:06am UTC](https://discuss.elastic.co/t/logstash-data-enhancement/131949/3 "2018-05-16T10:06:11Z")

</div>

translate filter as far as my knowledge will replace it but i need an extra field along with existing fields

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 16, 2018, 12:10pm UTC](https://discuss.elastic.co/t/logstash-data-enhancement/131949/4 "2018-05-16T12:10:48Z")

</div>

translate will add a field, by default called translation, or whatever you want if you use the destination option.

---

<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:** [June 13, 2018, 12:10pm UTC](https://discuss.elastic.co/t/logstash-data-enhancement/131949/5 "2018-06-13T12:10:59Z")

</div>

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