# Logstash translate filter

**URL:** <https://discuss.elastic.co/t/logstash-translate-filter/261518>\
**Category:** Logstash\
**Created:** [January 19, 2021, 9:31am UTC](https://discuss.elastic.co/t/logstash-translate-filter/261518 "2021-01-19T09:31:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinu89](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinu89/32/45939_2.png) [@vinu89](https://discuss.elastic.co/u/vinu89)\
**Post date:** [January 19, 2021, 9:31am UTC](https://discuss.elastic.co/t/logstash-translate-filter/261518/1 "2021-01-19T09:31:02Z")

</div>

hi,

i have a csv file containing malicious domains and category,i want to check whether those domains are comings in my logs and i achieved that using translate field..but i want to extract the particular category also which is not coming for a larger csv file

```
> sample csv file

```

> ```
> xyz.com,malware
> hhhh.com,APT
> llll.com,C&C
> 
> logstash
> 
> filter
> {
> translate { field => "domainname"
> destination => "blacklisted"
> source => "/tmp/malicious.csv"
> exact => "true"
> }}
> 
> ```

my output should contain [xyz.com](http://xyz.com) and also category malware..when i try the above code for a 100lines of csv file its working good..but when i give 1gb file its not working.please help

---

<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:** [February 16, 2021, 9:31am UTC](https://discuss.elastic.co/t/logstash-translate-filter/261518/2 "2021-02-16T09:31:10Z")

</div>

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