# Logstash input plugin for kafka

**URL:** https://discuss.elastic.co/t/logstash-input-plugin-for-kafka/65629
**Category:** Logstash
**Created:** [November 10, 2016, 10:15am UTC](https://discuss.elastic.co/t/logstash-input-plugin-for-kafka/65629 "2016-11-10T10:15:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sha198989](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@sha198989](https://discuss.elastic.co/u/sha198989)
#### Post date: [November 10, 2016, 10:15am UTC](https://discuss.elastic.co/t/logstash-input-plugin-for-kafka/65629/1 "2016-11-10T10:15:23Z")

</div>

i am having following error-

kafka client threw exception, restarting {:exception=\>#\<KafkaError: Got ZkException: Unable to

connect to zookeeper server within timeout: 6000\>, :level

this is the my config file

input{  
kafka {  
zk\_connect =\> "10.0.2.3:2181,10.0.2.4:2181,10.0.2.5:2181"  
topic\_id =\> "UNIX"  
group\_id =\> "consumer-unix"  
consumer\_threads =\> 2

output{  
stdout {}

elasticsearch{  
hosts =\> "10.0.4.11"  
index =\> "testunix\_%{+[YYYY.MM](http://YYYY.MM)}"  
}

}

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [November 14, 2016, 10:29am UTC](https://discuss.elastic.co/t/logstash-input-plugin-for-kafka/65629/2 "2016-11-14T10:29:57Z")

</div>

Can you telnet to the ZK nodes from the LS host?

---

<div class="post-metadata">

### Author: ![shashant](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@shashant](https://discuss.elastic.co/u/shashant)
#### Post date: [November 14, 2016, 11:57am UTC](https://discuss.elastic.co/t/logstash-input-plugin-for-kafka/65629/3 "2016-11-14T11:57:34Z")

</div>

Yes I could telnet

---

<div class="post-metadata">

### Author: ![sha198989](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@sha198989](https://discuss.elastic.co/u/sha198989)
#### Post date: [November 14, 2016, 12:18pm UTC](https://discuss.elastic.co/t/logstash-input-plugin-for-kafka/65629/4 "2016-11-14T12:18:20Z")

</div>

Yes I could ..

---

<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 12, 2016, 12:18pm UTC](https://discuss.elastic.co/t/logstash-input-plugin-for-kafka/65629/5 "2016-12-12T12:18:27Z")

</div>

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