Re: Kafka-c issues

Sanjay Patel <[email protected]> Fri, 15 Jul 2022 06:07:32 +0000
Newsgroups gmane.comp.syslog-ng
Message-ID <DM6PR20MB35228C00DF454B8B83FCB973D18B9@DM6PR20MB3522.namprd20.prod.outlook.com>
Here is what happens when I include it. It tires to use kafka-java

 

Error parsing config, syntax error, unexpected LL_IDENTIFIER, expecting '}'
in block destination kafka() at
/usr/share/syslog-ng/include/scl/kafka/kafka.conf:24:4:5-4:15:

1

2       #Start Block block destination kafka() at
/usr/share/syslog-ng/include/scl/kafka/kafka.conf:24

3

4----->     kafka-java(bootstrap_servers("127.0.0.1:9092")
topic("{incoming}") );

4----->     ^^^^^^^^^^

5

6       #End Block block destination kafka() at
/usr/share/syslog-ng/include/scl/kafka/kafka.conf:24

7

 

Included from /etc/syslog-ng/syslog-ng.conf:6:3-9:4:

1       @version: 3.37

2       @define kafka-implementation kafka-c

3       @include "scl.conf"

4

5       destination d_kafka {

6----->   kafka(

6----->   ^^^^^^^

7----->     bootstrap-servers("127.0.0.1:9092")

8----->     topic("{incoming}")

9----->   );

10      };

 

From: syslog-ng <[email protected]> On Behalf Of Peter
Kokai (pkokai)
Sent: Friday, July 15, 2022 2:05 AM
To: Syslog-ng users' and developers' mailing list
<[email protected]>
Subject: Re: [syslog-ng] Kafka-c issues

 

hello,

 

the @include is required for kafka, but you commented out with #

 

--

kokan

 

Get Outlook for Android <https://aka.ms/AAb9ysg> 

  _____  

From: syslog-ng <[email protected]
<mailto:[email protected]> > on behalf of Sanjay Patel
<[email protected] <mailto:[email protected]> >
Sent: Friday, July 15, 2022 7:30:21 AM
To: [email protected] <mailto:[email protected]>
<[email protected] <mailto:[email protected]> >
Subject: [syslog-ng] Kafka-c issues 

 

CAUTION: This email originated from outside of the organization. Do not
follow guidance, click links, or open attachments unless you recognize the
sender and know the content is safe.

 

I am trying to setup Syslog-NG t send output to Kakka. I am running ubuntu
18.04, Syslog-NG version 3.37.

 

This is my syslog-ng.conf   ( I have #scl.conf because if I don't it tries
to install kafka-java)

 

 

@version: 3.37

@define kafka-implementation kafka-c

#@include "scl.conf"

 

destination d_kafka {

  kafka(

    bootstrap-servers("127.0.0.1:9092")

    topic("{incoming}")

  );

};

 

 

This is the error when I try and run sudo syslog-ng

 

Error parsing config, syntax error, unexpected LL_IDENTIFIER, expecting '}'
in /etc/syslog-ng/syslog-ng.conf:6:3-6:8:

1       @version: 3.37

2       @define kafka-implementation kafka-c

3       #@include "scl.conf"

4

5       destination d_kafka {

6----->   kafka(

6----->   ^^^^^

7           bootstrap-servers("127.0.0.1:9092")

8           topic("{incoming}")

9         );

10      };

 

Any help will be appreciated.

 

SKP

______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq
smime.p7s (application/pkcs7-signature, 4.3 KB) - not displayed