# Cannot Ingest Logs from Kafka with Logstash

**URL:** <https://discuss.elastic.co/t/cannot-ingest-logs-from-kafka-with-logstash/188835>\
**Category:** Logstash\
**Created:** [July 4, 2019, 5:59am UTC](https://discuss.elastic.co/t/cannot-ingest-logs-from-kafka-with-logstash/188835 "2019-07-04T05:59:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashimmahara](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@ashimmahara](https://discuss.elastic.co/u/ashimmahara)\
**Post date:** [July 4, 2019, 5:59am UTC](https://discuss.elastic.co/t/cannot-ingest-logs-from-kafka-with-logstash/188835/1 "2019-07-04T05:59:06Z")

</div>

I have been unsuccessful in Ingesting Logs from Kafka topic with Logstash 6.6.2. I have successfully pushed the logs to Kafka topic using Filebeat 6.5.4.

Here is my Logstash config:

input {  
kafka {  
topics =\> ["wazuh-alerts"]  
#consumer\_threads =\> 4  
group\_id =\> "tasdasdsadasd"  
bootstrap\_servers =\> "localhost:9092"  
codec =\> json\_lines  
auto\_offset\_reset =\> "earliest"  
}  
}

output{  
stdout { codec =\> rubydebug }  
file { path =\> "test.txt" }

}

I have deleted all other filters in case they were causing problems. 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:** [August 1, 2019, 5:59am UTC](https://discuss.elastic.co/t/cannot-ingest-logs-from-kafka-with-logstash/188835/2 "2019-08-01T05:59:16Z")

</div>

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