kafka

Kafka source is used for receice Kafka data.

Example

  1. sources:
  2. - type: kafka
  3. brokers: ["kafka1.kafka.svc:9092"]
  4. topic: log-*

brokers

fieldtyperequireddefaultdescription
brokersstring arraytruenoneKafka broker address

topic

fieldtyperequireddefaultdescription
topicstringtruenonereceiving topics. You can use regular expressions to match multiple topics

groupId

fieldtyperequireddefaultdescription
groupIdstringfalseloggiegroupId Loggie use to consume kafka

queueCapacity

fieldtyperequireddefaultdescription
queueCapacityintfalse100capacity of internal sending queue

minAcceptedBytes

fieldtyperequireddefaultdescription
minAcceptedBytesintfalse1minimum bytes of received batch

maxAcceptedBytes

fieldtyperequireddefaultdescription
maxAcceptedBytesintfalse1e6maximum bytes of received batch

readMaxAttempts

fieldtyperequireddefaultdescription
readMaxAttemptsintfalse3maximum number of retries

maxPollWait

fieldtyperequireddefaultdescription
maxPollWaittime.Durationfalse10smaximum time waiting to receive

readBackoffMin

fieldtyperequireddefaultdescription
readBackoffMintime.Durationfalse100msminimum time interval before receiving a new message

readBackoffMax

fieldtyperequireddefaultdescription
readBackoffMaxtime.Durationfalse1smaximum time interval before receiving a new message

enableAutoCommit

fieldtyperequireddefaultdescription
enableAutoCommitboolfalsefalsewhether to enable autoCommit

autoCommitInterval

fieldtyperequireddefaultdescription
autoCommitIntervaltime.Durationfalse1sInterval time for autoCommit

autoOffsetReset

fieldtyperequireddefaultdescription
autoOffsetResetstringfalselatestthe initial offset adopted when there is no offset, which can be earliest or latest

sasl

fieldtyperequireddefaultdescription
saslfalseSASL authentication
sasl.typestringfalseSASL type, which can be plain, scram
sasl.userNamestringfalseusername
sasl.passwordstringfalsepassword
sasl.algorithmstringtrue when type=scramAlgorithm to use when type=scram. sha256 or sha512