# Logstash kafka - with ES as output

**URL:** https://discuss.elastic.co/t/logstash-kafka-with-es-as-output/69753
**Category:** Logstash
**Created:** [December 22, 2016, 9:26am UTC](https://discuss.elastic.co/t/logstash-kafka-with-es-as-output/69753 "2016-12-22T09:26:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![taurs](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@taurs](https://discuss.elastic.co/u/taurs)
#### Post date: [December 22, 2016, 9:26am UTC](https://discuss.elastic.co/t/logstash-kafka-with-es-as-output/69753/1 "2016-12-22T09:26:41Z")

</div>

I am trying to take the data from Kafka and push it to ES index.

input {  
kafka {  
bootstrap\_servers =\> "[XX.XXX.XXX.XXX:9092](http://XX.XXX.XXX.XXX:9092)"  
topics =\> ["timeseries\_ht"]  
}  
}  
output {  
elasticsearch { hosts =\> ["[XX.XXX.XXX.XXX:9200](http://XX.XXX.XXX.XXX:9200)"]  
index =\> "sound"  
}  
}

After running this, index is not created in my ES host . . Is there anything wrong with the configuration? I am using LOGSTASH 5.0.0. and ES 5.0.0 as well.

In Logstash 2.x version :

input {  
kafka {  
zk\_connect =\> "[XX.XXX.XXX.XXX:2181](http://XX.XXX.XXX.XXX:2181)"  
topic\_id =\> ["timeseries\_ht"]  
}  
}  
output {  
elasticsearch {  
hosts =\> ["[XX.XXX.XXX.XXX:9200](http://XX.XXX.XXX.XXX:9200)"]  
index =\> "sound"  
}  
}  
Doesnt work with Logstash 2.x as well. I am not able to see the index creation in my host machine.

Can anyone help where I am doing wrong here ?

---

<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: [December 29, 2016, 9:24pm UTC](https://discuss.elastic.co/t/logstash-kafka-with-es-as-output/69753/2 "2016-12-29T21:24:17Z")

</div>

What if you add a stdout, does anything happen then?

---

<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: [January 26, 2017, 9:24pm UTC](https://discuss.elastic.co/t/logstash-kafka-with-es-as-output/69753/3 "2017-01-26T21:24:17Z")

</div>

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