<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
{mso-style-name:x_msonormal;
margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.xxmsonormal, li.xxmsonormal, div.xxmsonormal
{mso-style-name:x_xmsonormal;
margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle25
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Attila,<o:p></o:p></p><p class=MsoNormal>Thanks for the response. Here is the response with your requested change.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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:12:<o:p></o:p></p><p class=MsoNormal>1<o:p></o:p></p><p class=MsoNormal>2 #Start Block block destination kafka() at /usr/share/syslog-ng/include/scl/kafka/kafka.conf:24<o:p></o:p></p><p class=MsoNormal>3<o:p></o:p></p><p class=MsoNormal>4-----> kafka-c(bootstrap_servers("127.0.0.1:9092") topic("{incoming}") );<o:p></o:p></p><p class=MsoNormal>4-----> ^^^^^^^<o:p></o:p></p><p class=MsoNormal>5<o:p></o:p></p><p class=MsoNormal>6 #End Block block destination kafka() at /usr/share/syslog-ng/include/scl/kafka/kafka.conf:24<o:p></o:p></p><p class=MsoNormal>7<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Included from /etc/syslog-ng/syslog-ng.conf:6:3-9:4:<o:p></o:p></p><p class=MsoNormal>1 @version: 3.37<o:p></o:p></p><p class=MsoNormal>2 @include "scl.conf"<o:p></o:p></p><p class=MsoNormal>3 @define kafka-implementation kafka-c<o:p></o:p></p><p class=MsoNormal>4<o:p></o:p></p><p class=MsoNormal>5 destination d_kafka {<o:p></o:p></p><p class=MsoNormal>6-----> kafka(<o:p></o:p></p><p class=MsoNormal>6-----> ^^^^^^^<o:p></o:p></p><p class=MsoNormal>7-----> bootstrap-servers("127.0.0.1:9092")<o:p></o:p></p><p class=MsoNormal>8-----> topic("{incoming}")<o:p></o:p></p><p class=MsoNormal>9-----> );<o:p></o:p></p><p class=MsoNormal>10 };<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='margin-left:.5in'><b>From:</b> syslog-ng <syslog-ng-bounces@lists.balabit.hu> <b>On Behalf Of </b>Attila Szakacs (aszakacs)<br><b>Sent:</b> Friday, July 15, 2022 2:25 AM<br><b>To:</b> Syslog-ng users' and developers' mailing list <syslog-ng@lists.balabit.hu><br><b>Subject:</b> Re: [syslog-ng] Kafka-c issues<o:p></o:p></p></div></div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><div><p class=MsoNormal style='margin-left:.5in;background:white'><span style='font-size:12.0pt;color:black'>Hi Sanjay,<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:.5in;background:white'><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='margin-left:.5in;background:white'><span style='font-size:12.0pt;color:black'>Can you try switching the define and the include, like:<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:.5in;background:white'><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='margin-left:.5in;background:white'><span style='font-size:12.0pt;color:black'>@version: 3.37 <o:p></o:p></span></p><div><p class=MsoNormal style='margin-left:.5in;background:white'><span style='font-size:12.0pt;color:black;background:white'>@include "scl.conf"</span><span style='font-size:12.0pt;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:.5in;background:white'><span style='font-size:12.0pt;color:black'>@define kafka-implementation kafka-c<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:.5in;background:white'><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='margin-left:.5in;background:white'><span style='font-size:12.0pt;color:black'>...<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:.5in;background:white'><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='margin-left:.5in;background:white'><span style='font-size:12.0pt;color:black'>Cheers,<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:.5in;background:white'><span style='font-size:12.0pt;color:black'>Attila<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:.5in;background:white'><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p></div></div><div class=MsoNormal align=center style='margin-left:.5in;text-align:center'><hr size=2 width="98%" align=center></div><div id=divRplyFwdMsg><p class=MsoNormal style='margin-left:.5in'><b><span style='color:black'>From:</span></b><span style='color:black'> syslog-ng <<a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a>> on behalf of Sanjay Patel <<a href="mailto:skp@smarthive.io">skp@smarthive.io</a>><br><b>Sent:</b> Friday, July 15, 2022 8:07 AM<br><b>To:</b> Syslog-ng users' and developers' mailing list <<a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a>><br><b>Subject:</b> Re: [syslog-ng] Kafka-c issues</span> <o:p></o:p></p><div><p class=MsoNormal style='margin-left:.5in'> <o:p></o:p></p></div></div><div><div style='border:solid #9C6500 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt'><p class=MsoNormal style='margin-left:.5in;line-height:12.0pt;background:#FFEB9C'><b><span style='font-size:10.0pt;color:#9C6500'>CAUTION:</span></b><span style='font-size:10.0pt;color:black'> 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.<o:p></o:p></span></p></div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><div><div><p class=xmsonormal style='margin-left:.5in'>Here is what happens when I include it. It tires to use kafka-java<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'> <o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>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:<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>1<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>2 #Start Block block destination kafka() at /usr/share/syslog-ng/include/scl/kafka/kafka.conf:24<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>3<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>4-----> kafka-java(bootstrap_servers("127.0.0.1:9092") topic("{incoming}") );<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>4-----> ^^^^^^^^^^<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>5<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>6 #End Block block destination kafka() at /usr/share/syslog-ng/include/scl/kafka/kafka.conf:24<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>7<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'> <o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>Included from /etc/syslog-ng/syslog-ng.conf:6:3-9:4:<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>1 @version: 3.37<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>2 @define kafka-implementation kafka-c<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>3 @include "scl.conf"<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>4<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>5 destination d_kafka {<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>6-----> kafka(<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>6-----> ^^^^^^^<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>7-----> bootstrap-servers("127.0.0.1:9092")<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>8-----> topic("{incoming}")<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>9-----> );<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'>10 };<o:p></o:p></p><p class=xmsonormal style='margin-left:.5in'> <o:p></o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=xmsonormal style='margin-left:1.0in'><b>From:</b> syslog-ng <<a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a>> <b>On Behalf Of </b>Peter Kokai (pkokai)<br><b>Sent:</b> Friday, July 15, 2022 2:05 AM<br><b>To:</b> Syslog-ng users' and developers' mailing list <<a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a>><br><b>Subject:</b> Re: [syslog-ng] Kafka-c issues<o:p></o:p></p></div></div><p class=xmsonormal style='margin-left:1.0in'> <o:p></o:p></p><div><p class=xmsonormal style='margin-left:1.0in'>hello,<o:p></o:p></p></div><div><p class=xmsonormal style='margin-left:1.0in;background:white'><span style='color:#212121'> </span><o:p></o:p></p></div><div><p class=xmsonormal style='margin-left:1.0in;background:white'><span style='color:#212121'>the @include is required for kafka, but you commented out with #</span><o:p></o:p></p></div><div><p class=xmsonormal style='margin-left:1.0in;background:white'><span style='color:#212121'> </span><o:p></o:p></p></div><div><p class=xmsonormal style='margin-left:1.0in;background:white'><span style='color:#212121'>--</span><o:p></o:p></p></div><div><p class=xmsonormal style='margin-left:1.0in;background:white'><span style='color:#212121'>kokan</span><o:p></o:p></p></div><div><p class=xmsonormal style='margin-left:1.0in'> <o:p></o:p></p></div><div id="x_ms-outlook-mobile-signature"><p class=xmsonormal style='margin-left:1.0in'>Get <a href="https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2FAAb9ysg&data=05%7C01%7Cattila.szakacs%40balabit.com%7Caaff869a335a430ee9c708da66285200%7C91c369b51c9e439c989c1867ec606603%7C0%7C1%7C637934620622603978%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2Ly%2Fj%2F9kJUQjcC%2Bi3yAjXC6qyevj50Wv5Vx1pUQ9ESU%3D&reserved=0">Outlook for Android</a><o:p></o:p></p></div><div style='margin-left:.5in'><div class=MsoNormal align=center style='margin-left:.5in;text-align:center'><hr size=2 width="98%" align=center></div></div><div id="x_divRplyFwdMsg"><p class=xmsonormal style='margin-left:1.0in'><b><span style='color:black'>From:</span></b><span style='color:black'> syslog-ng <<a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a>> on behalf of Sanjay Patel <<a href="mailto:skp@smarthive.io">skp@smarthive.io</a>><br><b>Sent:</b> Friday, July 15, 2022 7:30:21 AM<br><b>To:</b> <a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a> <<a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a>><br><b>Subject:</b> [syslog-ng] Kafka-c issues</span> <o:p></o:p></p><div><p class=xmsonormal style='margin-left:1.0in'> <o:p></o:p></p></div></div><div><div style='border:solid #9C6500 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt'><p class=xmsonormal style='margin-left:1.0in;line-height:12.0pt;background:#FFEB9C'><b><span style='font-size:10.0pt;color:#9C6500'>CAUTION:</span></b><span style='font-size:10.0pt;color:black'> 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.</span><o:p></o:p></p></div><p class=xmsonormal style='margin-left:1.0in'> <o:p></o:p></p><div><div><p class=xxmsonormal style='margin-left:1.0in'>I am trying to setup Syslog-NG t send output to Kakka. I am running ubuntu 18.04, Syslog-NG version 3.37.<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'> <o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>This is my syslog-ng.conf ( I have #scl.conf because if I don’t it tries to install kafka-java)<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'> <o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'> <o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>@version: 3.37<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>@define kafka-implementation kafka-c<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>#@include "scl.conf"<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'> <o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>destination d_kafka {<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'> kafka(<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'> bootstrap-servers("127.0.0.1:9092")<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'> topic("{incoming}")<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'> );<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>};<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'> <o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'> <o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>This is the error when I try and run sudo syslog-ng<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'> <o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>Error parsing config, syntax error, unexpected LL_IDENTIFIER, expecting '}' in /etc/syslog-ng/syslog-ng.conf:6:3-6:8:<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>1 @version: 3.37<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>2 @define kafka-implementation kafka-c<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>3 #@include "scl.conf"<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>4<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>5 destination d_kafka {<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>6-----> kafka(<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>6-----> ^^^^^<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>7 bootstrap-servers("127.0.0.1:9092")<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>8 topic("{incoming}")<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>9 );<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>10 };<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'> <o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>Any help will be appreciated.<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'> <o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'>SKP<o:p></o:p></p><p class=xxmsonormal style='margin-left:1.0in'> <o:p></o:p></p></div></div></div></div></div></div></div></body></html>