# Translate CSV with varios fields

**URL:** <https://discuss.elastic.co/t/translate-csv-with-varios-fields/212771>\
**Category:** Logstash\
**Created:** [December 22, 2019, 10:22am UTC](https://discuss.elastic.co/t/translate-csv-with-varios-fields/212771 "2019-12-22T10:22:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![carmezsa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carmezsa/32/59443_2.png) [@carmezsa](https://discuss.elastic.co/u/carmezsa)\
**Post date:** [December 22, 2019, 10:22am UTC](https://discuss.elastic.co/t/translate-csv-with-varios-fields/212771/1 "2019-12-22T10:22:31Z")

</div>

Hi,  
I am using translate filter to to compara fields from a CSV. CSV have two fields, but now I need a 3 fields.

Actual CSV

> 148.244.114.49,malicious\_IP

New CSV

> 148.244.114.49,malicious, botnet  
> 148.244.113.9,malicious, spam

My filter from logstahs:

```
      translate {
      field => "[id.resp_h]"
      destination => "malicious_IP"    
      dictionary_path => "/home/events.csv" 
      override => true

```

Description: if value of id.resp\_h is on de dictionay events.csv, add new field "malicious\_IP"

Now I need to add one more fields. I need and the value of "botnet", "spam", ...

How can I do that?  
thanks.

---

<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:** [January 19, 2020, 10:22am UTC](https://discuss.elastic.co/t/translate-csv-with-varios-fields/212771/2 "2020-01-19T10:22:34Z")

</div>

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