[syslog-ng] Error trying to use kafka-c

Ronald Fenner rfenner at gamecircus.com
Tue Aug 4 23:05:58 UTC 2020


I'm trying to switch from the java version of kafka to the c version and have built syslog with the following config:
./configure --prefix=/opt/syslog-ng --enable-json --enable-python --with-python=2.7 --enable-kafka

However when I try syntax check the config it's returning this error:
Error parsing destination statement, destination plugin kafka-c not found in block destination kafka() at /opt/syslog-ng/share/syslog-ng/include/scl/kafka/kafka.conf:24:4:5-4:12:
1
2       #Start Block block destination kafka() at /opt/syslog-ng/share/syslog-ng/include/scl/kafka/kafka.conf:24
3
4----->     kafka-c(bootstrap_servers("kafka.service.consul:9092") topic("syslog-ng-production") );
4----->     ^^^^^^^
5
6       #End Block block destination kafka() at /opt/syslog-ng/share/syslog-ng/include/scl/kafka/kafka.conf:24
7

Included from /opt/syslog-ng/etc/syslog-ng.conf:33:5-36:6:
28      source s_rtl_raw_backup {
29          file("/var/gamecircus/log/rtl-raw-backup.log" flags(no-parse) log_msg_size(1000000));
30      };
31
32      destination d_kafka_unstructured {
33---->     kafka (
33---->     ^^^^^^^^
34---->         bootstrap-servers("kafka.service.consul:9092")
35---->         topic("syslog-ng-`DeployedEnvironment`")
36---->     );
37      };
38


The top of my config looks like this
@version: 3.28
@include "scl.conf"
@include "conf.d/gc-parsers.conf"
@define kafka-implementation kafka-c

Everything looks correct just not sure why it's having a hard time finding it.


Ronald Fenner
Network Architect
Game Circus LLC.

rfenner at gamecircus.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20200804/d60e88ff/attachment.html>


More information about the syslog-ng mailing list