Skip to content

Commit

Permalink
Update example config
Browse files Browse the repository at this point in the history
  • Loading branch information
ryananguiano committed Sep 25, 2017
1 parent 99aeefe commit 646ed0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ When this codec is used to decode the input, you may pass the following options:
- ``username`` - optional.
- ``password`` - optional.

If the input stream is binary encoded, you should use the ``ByteArrayDeserializer``
in the Kafka input config.

## Encoding (output)

This codec uses the Confluent schema registry to register a schema and
Expand Down Expand Up @@ -45,6 +48,7 @@ input {
codec => avro_schema_registry {
endpoint => "http://schemas.example.com"
}
value_deserializer_class => "org.apache.kafka.common.serialization.ByteArrayDeserializer"
}
}
filter {
Expand Down
4 changes: 4 additions & 0 deletions lib/logstash/codecs/avro_schema_registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
# - ``username`` - optional.
# - ``password`` - optional.
#
# If the input stream is binary encoded, you should use the ``ByteArrayDeserializer``
# in the Kafka input config.
#
# ==== Encoding (output)
#
# This codec uses the Confluent schema registry to register a schema and
Expand Down Expand Up @@ -60,6 +63,7 @@
# codec => avro_schema_registry {
# endpoint => "http://schemas.example.com"
# }
# value_deserializer_class => "org.apache.kafka.common.serialization.ByteArrayDeserializer"
# }
# }
# filter {
Expand Down

0 comments on commit 646ed0a

Please sign in to comment.