# Deserializing Avro Records with different schemas

**URL:** <https://discuss.elastic.co/t/deserializing-avro-records-with-different-schemas/337701>\
**Category:** Logstash\
**Created:** [July 5, 2023, 4:54pm UTC](https://discuss.elastic.co/t/deserializing-avro-records-with-different-schemas/337701 "2023-07-05T16:54:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fine\_porcupine](https://avatars.discourse-cdn.com/v4/letter/f/8dc957/32.png) [@fine\_porcupine](https://discuss.elastic.co/u/fine_porcupine)\
**Post date:** [July 5, 2023, 4:54pm UTC](https://discuss.elastic.co/t/deserializing-avro-records-with-different-schemas/337701/1 "2023-07-05T16:54:38Z")

</div>

I'm doing the due diligence on the [Avro Codec Plugin](https://www.elastic.co/guide/en/logstash/current/plugins-codecs-avro.html) and I'm wondering if it's possible to use this if there are different types of events in the same SQS queue?

For example - SQS Queue contains serialized events with schemas A.avsc, B.avsc, and C.avsc. Can I still deserialize avro events from one input if they are not all the same? Thanks!

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 5, 2023, 7:27pm UTC](https://discuss.elastic.co/t/deserializing-avro-records-with-different-schemas/337701/2 "2023-07-05T19:27:19Z")

</div>

Whatever the schema\_uri option points to is [read once](https://github.com/logstash-plugins/logstash-codec-avro/blob/225e63d70f40475a0e462dcc203df87fd7a5c0f3/lib/logstash/codecs/avro.rb#L97) when the pipeline is loaded and re-used until the pipeline is restarted, so I suspect you cannot.

---

<div class="post-metadata">

**Author:** ![fine\_porcupine](https://avatars.discourse-cdn.com/v4/letter/f/8dc957/32.png) [@fine\_porcupine](https://discuss.elastic.co/u/fine_porcupine)\
**Post date:** [July 5, 2023, 7:43pm UTC](https://discuss.elastic.co/t/deserializing-avro-records-with-different-schemas/337701/3 "2023-07-05T19:43:12Z")

</div>

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:** [August 2, 2023, 7:43pm UTC](https://discuss.elastic.co/t/deserializing-avro-records-with-different-schemas/337701/4 "2023-08-02T19:43:14Z")

</div>

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