topic#
Identifies one or more Kafka topics from which imkafka consumes messages.
This parameter applies to imkafka: read from Apache Kafka.
- Name:
topic
- Scope:
input
- Type:
array
- Required?:
yes
- Introduced:
8.27.0
Description#
Specifies the Kafka topic or topics to consume from. A single topic name may
be given as a string. Multiple topics may be given as an array, allowing one
input() to consume from several topics at once.
Input usage#
Single topic:
module(load="imkafka")
input(type="imkafka"
topic="mytopic"
broker="localhost:9092"
consumergroup="default")
Multiple topics:
module(load="imkafka")
input(type="imkafka"
topic=["topic1", "topic2", "topic3"]
broker="localhost:9092"
consumergroup="default")
See also#
See also imkafka: read from Apache Kafka.
Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project
Contributing: Source & docs: rsyslog source project
© 2008–2026 Rainer Gerhards and others. Licensed under the Apache License 2.0.