Starting with version
As of syslog-ng OSE version
The new C implementation has the following advantages in comparison with the Java implementation:
For the list of options, see Options of the kafka destination's C implementation .
@define kafka-implementation kafka-c kafka( bootstrap-servers("1.2.3.4:9092,192.168.0.2:9092") topic("{MYTOPIC}") );
The following example defines a kafka destination in the new C implementation, using only the required parameters.
@define kafka-implementation kafka-c @include "scl.conf" destination d_kafka { kafka( bootstrap-servers("1.2.3.4:9092,192.168.0.2:9092") topic("{MYTOPIC}") ); };
To install the software required for the kafka destination, see Prerequisites and restrictions.
For details on how the new C implementation of the kafka destination works with syslog-ng, see How the C implementation of the kafka destination works with syslog-ng OSE.
For the list of options, see Options of the kafka destination's C implementation .
If you used the Java implementation before, see Shifting from Java implementation to C implementation .
This destination is only supported on the Linux platform.
Since the new C implementation uses the librdkafka client library, the kafka destination has less memory usage than the previous Java implementation (which uses the official Java Kafka producer).
The log messages of the underlying client libraries are available in the internal() source of syslog-ng OSE.
The syslog-ng OSE kafka destination supports all properties of the official Kafka producer. For details, see the librdkafka documentation.
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy