# Fast check of ip address list

**URL:** https://discuss.elastic.co/t/fast-check-of-ip-address-list/157388
**Category:** Elasticsearch
**Created:** [November 19, 2018, 3:49pm UTC](https://discuss.elastic.co/t/fast-check-of-ip-address-list/157388 "2018-11-19T15:49:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![elk2](https://avatars.discourse-cdn.com/v4/letter/e/f14d63/32.png) [@elk2](https://discuss.elastic.co/u/elk2)
#### Post date: [November 19, 2018, 3:49pm UTC](https://discuss.elastic.co/t/fast-check-of-ip-address-list/157388/1 "2018-11-19T15:49:53Z")

</div>

I have a many logs from external ip address that connect to my web application.  
I would like to check this ip address into logs with my list in a text file.  
How can I check if there is ip address into logs that are also into my list?

---

<div class="post-metadata">

### Author: ![elk2](https://avatars.discourse-cdn.com/v4/letter/e/f14d63/32.png) [@elk2](https://discuss.elastic.co/u/elk2)
#### Post date: [November 21, 2018, 8:54am UTC](https://discuss.elastic.co/t/fast-check-of-ip-address-list/157388/2 "2018-11-21T08:54:53Z")

</div>

This is a good solution! Thanks Christian.  
But for logs that are already indexed?

> [@Christian\_Dahlqvist](#):
>
> One option would be to look up the IP and add a tag or field during indexing, e.g. using a Logstash translate filter.

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [November 21, 2018, 8:58am UTC](https://discuss.elastic.co/t/fast-check-of-ip-address-list/157388/3 "2018-11-21T08:58:21Z")

</div>

One option would be to look up the IP and add a tag or field during indexing, e.g. using a Logstash translate filter.

---

<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: [December 19, 2018, 8:58am UTC](https://discuss.elastic.co/t/fast-check-of-ip-address-list/157388/4 "2018-12-19T08:58:34Z")

</div>

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