# Logstash confluent avro topic read

**URL:** https://discuss.elastic.co/t/logstash-confluent-avro-topic-read/120601
**Category:** Logstash
**Created:** [February 20, 2018, 10:09am UTC](https://discuss.elastic.co/t/logstash-confluent-avro-topic-read/120601 "2018-02-20T10:09:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Shekhar\_Pandey](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shekhar\_Pandey](https://discuss.elastic.co/u/Shekhar_Pandey)
#### Post date: [February 20, 2018, 10:09am UTC](https://discuss.elastic.co/t/logstash-confluent-avro-topic-read/120601/1 "2018-02-20T10:09:00Z")

</div>

Hi...I create a Java producer using avro in kafka topic....but when I try to read the topic using logstash...its giving empty messages....my confi file is given below...

input {  
kafka {  
bootstrap\_servers =\> "localhost:9092"  
topics =\> ["madhu"]  
codec =\> avro {  
schema\_uri =\> "/usr/share/logstash/bin/Customer.avsc"  
}  
}  
}  
output {

stdout {  
codec =\> rubydebug  
}  
elasticsearch {  
hosts =\> ["localhost:9200"]  
codec =\> json\_lines  
index =\> "sammy"  
}  
}

Any idea...where I am wrong...

Thanks

---

<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: [March 20, 2018, 10:09am UTC](https://discuss.elastic.co/t/logstash-confluent-avro-topic-read/120601/2 "2018-03-20T10:09:05Z")

</div>

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