# Preprocessing logs with logstash and kafka

**URL:** <https://discuss.elastic.co/t/preprocessing-logs-with-logstash-and-kafka/163240>\
**Category:** Logstash\
**Created:** [January 7, 2019, 4:13pm UTC](https://discuss.elastic.co/t/preprocessing-logs-with-logstash-and-kafka/163240 "2019-01-07T16:13:42Z")\
**Posts on this page:** 2\
**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:** [January 7, 2019, 4:13pm UTC](https://discuss.elastic.co/t/preprocessing-logs-with-logstash-and-kafka/163240/1 "2019-01-07T16:13:42Z")

</div>

I want to know if there are blacklisted ip address that contact my web services in real-time.  
Every day I download a blacklist of ip address and I want to add this information to my logs.  
My idea is to pre-process logs and next to send logs to elasticsearch with this steps:

blacklistedip.txt---\>Logstash---\>Kafka---\>Logstash---\>Elasticsearch  
Webserviceslogs---\>Logstash-------^

Have you a better idea?

---

<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 4, 2019, 4:13pm UTC](https://discuss.elastic.co/t/preprocessing-logs-with-logstash-and-kafka/163240/2 "2019-02-04T16:13:44Z")

</div>

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