How to write output to avro file from logstash using avro codec

Hi.

I have file input that is in json format. How can i write to avro file output using elasticsearch.?

You mean "using Logstash", right? You already have a thread for this; Unable to write to avro file from logstash. Let's not fragment the discussion.

As mentioned, please use Unable to write to avro file from logstash