Skip to content

Make base64 encoding optional #28

Open
@johanvanderkuijl

Description

@johanvanderkuijl

We’re using Logstash to write event data to a Kafka queue. The consumer of this queue expects an Avro binary blob (or fragment, the terminology seems to differ sometimes). It seems however, that using the Avro codec provided by Logstash for the Kafka output adapter, results in a base64 encoded version of the binary fragment being produced to Kafka. This is also clear from the source code:

@on_event.call(event, Base64.strict_encode64(buffer.string))

Do you agree that this encoding should be configurable, like 'base64encoding => true/false' ?
What is it's use anyway?
Should I make a PR for this issue?

Thanks in advance,
Johan

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions