# How effective translate field in logstash

**URL:** <https://discuss.elastic.co/t/how-effective-translate-field-in-logstash/214411>\
**Category:** Logstash\
**Created:** [January 9, 2020, 10:17am UTC](https://discuss.elastic.co/t/how-effective-translate-field-in-logstash/214411 "2020-01-09T10:17:33Z")\
**Posts on this page:** 5\
**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 9, 2020, 10:17am UTC](https://discuss.elastic.co/t/how-effective-translate-field-in-logstash/214411/1 "2020-01-09T10:17:33Z")

</div>

Hi,

I have a set of threat intel feeds i want to check whether those blacklisted ip occurs in my logs... i tried using translate field it works fine...i want to know whether we can compare billions of blacklisted ip using translate field or is there any limitation

Thanks

---

<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:** [January 9, 2020, 4:54pm UTC](https://discuss.elastic.co/t/how-effective-translate-field-in-logstash/214411/2 "2020-01-09T16:54:15Z")

</div>

With a translate filter it keeps a hash of all the entries in memory, so having billions of entries will require a large amount of memory, but if you have the memory it should be OK.

A cidr filter might be a better fit, depending on the details on the set of IPs.

---

<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 20, 2020, 5:59am UTC](https://discuss.elastic.co/t/how-effective-translate-field-in-logstash/214411/3 "2020-01-20T05:59:20Z")

</div>

ok thanks.... but again cidr filter uses only three fields a particular address,network,network path so as per my understanding i should define all the ip in a file and use the network\_path field which points to that file ...

filter {  
cidr {  
add\_tag =\> ["linklocal"]  
address =\> ["%{clientip}"]  
network\_path =\> ["/opt/blacklistedip"]  
}  
}

---

<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 21, 2020, 11:44am UTC](https://discuss.elastic.co/t/how-effective-translate-field-in-logstash/214411/4 "2020-01-21T11:44:45Z")

</div>

and one more doubt is there any other method to combine threat intel and elastic

---

<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 18, 2020, 11:44am UTC](https://discuss.elastic.co/t/how-effective-translate-field-in-logstash/214411/5 "2020-02-18T11:44:46Z")

</div>

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