# Logstash avro file problem

**URL:** https://discuss.elastic.co/t/logstash-avro-file-problem/90601
**Category:** Logstash
**Created:** [June 23, 2017, 9:05am UTC](https://discuss.elastic.co/t/logstash-avro-file-problem/90601 "2017-06-23T09:05:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![NandhaKrishna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nandhakrishna/32/26286_2.png) [@NandhaKrishna](https://discuss.elastic.co/u/NandhaKrishna)
#### Post date: [June 23, 2017, 9:05am UTC](https://discuss.elastic.co/t/logstash-avro-file-problem/90601/1 "2017-06-23T09:05:01Z")

</div>

I'm trying to input avro file and link it to its avsc file and write that into elasticsearch.

This is my config file,

input {  
file {  
path =\> "twitter.avro"  
type =\> "avro"  
codec =\> { avro =\> {  
schema\_uri =\> "twitter.avsc"  
}  
}  
}  
}   
filter {  
#Only matched data are send to output.  
}  
output {  
elasticsearch { hosts =\> ["localhost:9200"] }  
stdout{ codec =\> json }  
}

I keep getting this error,

[2017-06-23T13:15:05,644][ERROR][logstash.agent] Cannot create pipeline {:reason=\>"undefined method `execution\_context=' for ["avro", {"schema\_uri"=\>"C:/config/twitter.avsc"}]:Array"}

Kindly help.

---

<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: [July 21, 2017, 9:05am UTC](https://discuss.elastic.co/t/logstash-avro-file-problem/90601/2 "2017-07-21T09:05:12Z")

</div>

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