# The logstash(indexer) can not get logs from kafka

**URL:** <https://discuss.elastic.co/t/the-logstash-indexer-can-not-get-logs-from-kafka/126432>\
**Category:** Logstash\
**Created:** [April 2, 2018, 1:00pm UTC](https://discuss.elastic.co/t/the-logstash-indexer-can-not-get-logs-from-kafka/126432 "2018-04-02T13:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CISSY-Lu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cissy-lu/32/144623_2.png) [@CISSY-Lu](https://discuss.elastic.co/u/CISSY-Lu)\
**Post date:** [April 2, 2018, 1:00pm UTC](https://discuss.elastic.co/t/the-logstash-indexer-can-not-get-logs-from-kafka/126432/1 "2018-04-02T13:00:01Z")

</div>

logstash(agent)--\>kafka---\>logstash(indexer)--\>ES  
logstash(agent) collected logs and send them to kafka was good.but the logstash(indexer) can't get the logs from kafka to ES.and there is no error logs.how could i solve this problem ,anyone has any ideas about this ？

the test environment ：one zookeeper instance and one kafka instance in the same server

thank you！！！

run this command can see  
kafka/bin/kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list 172.16.255.116:9092 --topic XXXX  
（3 partitions）  
XXXX:2:28959  
XXXX:1:28959  
XXXX:0:28958

Version:  
logstash---\>5.5.0  
kafka-----\>2.11-1.1.0

logstash(agent) config-file  
output {  
kafka {  
bootstrap\_servers =\> "172.16.255.116:9092"  
topic\_id =\> "XXXX"  
acks =\> "0"  
compression\_type =\> "snappy"  
}  
}

logstash(indexer)config-file  
input {  
kafka{  
topics =\> ["XXXX"]  
bootstrap\_servers =\> "172.16.255.116:9092"  
consumer\_threads =\> 5  
decorate\_events =\> true  
}  
}

---

<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:** [April 30, 2018, 1:00pm UTC](https://discuss.elastic.co/t/the-logstash-indexer-can-not-get-logs-from-kafka/126432/2 "2018-04-30T13:00:29Z")

</div>

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