Skip to content

Conversation

@Cherrling
Copy link

if it is

destination d_kafka {
    kafka(
    bootstrap-servers("1.2.3.4:9092,192.168.0.2:9092")
    topic("{MYTOPIC}")
    );

the docker syslog-ng wont work

and i found this https://www.syslog-ng.com/community/b/blog/posts/kafka-destination-improved-with-template-support-in-syslog-ng

it may should be

destination d_kafka {
  kafka-c(config(metadata.broker.list("localhost:9092")
                   queue.buffering.max.ms("1000"))
        topic("mytest")
        message("$(format-json --scope rfc5424 --scope nv-pairs)"));
};

and i change it from kafka to kafka-c, it works really well

the docker image i use is balabit/syslog-ng:latest

@CLAassistant
Copy link

CLAassistant commented Jul 15, 2025

CLA assistant check
All committers have signed the CLA.

@HofiOne
Copy link
Collaborator

HofiOne commented Jul 15, 2025

kafka (the java version) is dropped in favour of kafka-c, there might still be some outdated pages, thank you for your contribution!

@Cherrling
Copy link
Author

This mistake take me the whole day digging into it. It really need to be fixed as soon as possible.

Signed-off-by: 白日梦主义 <37233261+Cherrling@users.noreply.github.com>
@HofiOne
Copy link
Collaborator

HofiOne commented Jul 15, 2025

This is an issue that comes from the fact that the documentation is now ahead of the release version of the code, this reflects the develop status always. On the develop kafka and kafka-c can be used interchangeably after the java kafka is dropped.

We should remove all of the remaining references of the kafka-c instead, I guess.

Closing this issue and creating a new one about the cleanup, thanks for your effort!

@Cherrling
Copy link
Author

So what could I do to contribute to this proj

@HofiOne
Copy link
Collaborator

HofiOne commented Jul 15, 2025

So what could I do to contribute to this proj

Regarding this issue, I think we are done (after the review is finished)

For other issues you can either browse the pending documentation issues, or the syslog-ng application issues, any help would be very welcome!

HofiOne added a commit that referenced this pull request Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants