# Nested Avro Schemas

**URL:** <https://discuss.elastic.co/t/nested-avro-schemas/48701>\
**Category:** Logstash\
**Created:** [April 28, 2016, 3:22pm UTC](https://discuss.elastic.co/t/nested-avro-schemas/48701 "2016-04-28T15:22:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jchoinski](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@jchoinski](https://discuss.elastic.co/u/jchoinski)\
**Post date:** [April 28, 2016, 3:22pm UTC](https://discuss.elastic.co/t/nested-avro-schemas/48701/1 "2016-04-28T15:22:28Z")

</div>

Hello,  
I am using logstash 2.3.2.  
Is there anyway to specify in the config file or organize the avsc files in order to use nested Avro with logstash?

This is my config file.

input {  
kafka {  
codec =\> avro{  
schema\_uri =\> "InstrumentDef.avsc"  
}  
topic\_id =\> "instrument-def"  
reset\_beginning =\> true  
auto\_offset\_reset =\> "smallest"  
zk\_connect =\> "10.10.100.242:2181/kafka"  
}  
}  
output {  
stdout {  
codec =\> rubydebug  
}  
}

and this is the avsc file.

{  
"name": "InstrumentDef",  
"type": "record",  
"fields": [  
{  
"name": "key",  
"type": "InstrKey"  
}  
]  
}  
and in the same folder there is an InstrKey.avsc

This works in other languages with more developed avro support, like Java and Scala, but it fails with  
" InstrKey is not a schema we know about " in logstash.

---

<div class="post-metadata">

**Author:** ![amarc](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@amarc](https://discuss.elastic.co/u/amarc)\
**Post date:** [June 13, 2017, 7:12pm UTC](https://discuss.elastic.co/t/nested-avro-schemas/48701/2 "2017-06-13T19:12:28Z")

</div>

@jchoinski  
Just wondering if you found any solution for this ?

---

<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:** [November 4, 2022, 4:19am UTC](https://discuss.elastic.co/t/nested-avro-schemas/48701/3 "2022-11-04T04:19:39Z")

</div>


