Hi all!

I am trying to set up the KafkaAppender using the properties file syntax
but I cannot seem to be able to pass all the required properties.

I am trying with:
appender.kafka.name = KafkaAppender
appender.kafka.topic = logs.topic
appender.kafka.property.bootstrap.servers = <host>:<port>
appender.kafka.type = KAFKA
appender.kafka.layout.type = PatternLayout
appender.kafka.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %-60c %x -
%m%n

But I am keep hitting the following error:
ConfigurationException: No type attribute provided for component property

The Kafka Appender needs at least the bootstrap.servers property configured
in the propertyArray but I have no idea how to pass this in a properties
file format and can't find any examples of doing so (only xml).

Thank you!
Gyula

Reply via email to