<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Hi Sanjay,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Can you try switching the define and the include, like:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
@version: 3.37
<div><span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); display: inline !important;">@include "scl.conf"</span><br>
</div>
<div>@define kafka-implementation kafka-c<br>
</div>
<div><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;"></span><br>
</div>
<div>...</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Attila<br>
</div>
<div><br>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> syslog-ng <syslog-ng-bounces@lists.balabit.hu> on behalf of Sanjay Patel <skp@smarthive.io><br>
<b>Sent:</b> Friday, July 15, 2022 8:07 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</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
p.x_xmsonormal, li.x_xmsonormal, div.x_xmsonormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_EmailStyle22
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div style="background-color:#FFEB9C; width:100%; border-style:solid; border-color:#9C6500; border-width:1pt; padding:2pt; font-size:10pt; line-height:12pt; font-family:'Calibri'; color:Black; text-align:left">
<span style="color:#9C6500; font-weight:bold">CAUTION:</span> 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.</div>
<br>
<div>
<div class="x_WordSection1">
<p class="x_MsoNormal">Here is what happens when I include it. It tires to use kafka-java</p>
<p class="x_MsoNormal"> </p>
<p class="x_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:15:</p>
<p class="x_MsoNormal">1</p>
<p class="x_MsoNormal">2       #Start Block block destination kafka() at /usr/share/syslog-ng/include/scl/kafka/kafka.conf:24</p>
<p class="x_MsoNormal">3</p>
<p class="x_MsoNormal">4----->     kafka-java(bootstrap_servers("127.0.0.1:9092") topic("{incoming}") );</p>
<p class="x_MsoNormal">4----->     ^^^^^^^^^^</p>
<p class="x_MsoNormal">5</p>
<p class="x_MsoNormal">6       #End Block block destination kafka() at /usr/share/syslog-ng/include/scl/kafka/kafka.conf:24</p>
<p class="x_MsoNormal">7</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Included from /etc/syslog-ng/syslog-ng.conf:6:3-9:4:</p>
<p class="x_MsoNormal">1       @version: 3.37</p>
<p class="x_MsoNormal">2       @define kafka-implementation kafka-c</p>
<p class="x_MsoNormal">3       @include "scl.conf"</p>
<p class="x_MsoNormal">4</p>
<p class="x_MsoNormal">5       destination d_kafka {</p>
<p class="x_MsoNormal">6----->   kafka(</p>
<p class="x_MsoNormal">6----->   ^^^^^^^</p>
<p class="x_MsoNormal">7----->     bootstrap-servers("127.0.0.1:9092")</p>
<p class="x_MsoNormal">8----->     topic("{incoming}")</p>
<p class="x_MsoNormal">9----->   );</p>
<p class="x_MsoNormal">10      };</p>
<p class="x_MsoNormal"> </p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal" style="margin-left:.5in"><b>From:</b> syslog-ng <syslog-ng-bounces@lists.balabit.hu>
<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 <syslog-ng@lists.balabit.hu><br>
<b>Subject:</b> Re: [syslog-ng] Kafka-c issues</p>
</div>
</div>
<p class="x_MsoNormal" style="margin-left:.5in"> </p>
<div>
<p class="x_MsoNormal" style="margin-left:.5in">hello,</p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:.5in; background:white"><span style="color:#212121"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:.5in; background:white"><span style="color:#212121">the @include is required for kafka, but you commented out with #</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:.5in; background:white"><span style="color:#212121"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:.5in; background:white"><span style="color:#212121">--</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:.5in; background:white"><span style="color:#212121">kokan</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:.5in"> </p>
</div>
<div id="x_ms-outlook-mobile-signature">
<p class="x_MsoNormal" style="margin-left:.5in">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" originalsrc="https://aka.ms/AAb9ysg" shash="zF6HXvgLW65LvO/pMY/viUI9b/3wpUUgi8Kb+vWdXVdfLrUWA4JIRdz55YXg4STMhKCZ/a0wSKZVy2SVZmy/duZc0ptpBwIsCYqyTsGOkI+fCU7tHdiyTRqPLGD6wQrQn/zpb1lFptwf/VpNzn2Ui0JXOYVWvw/kPi19oGsoJWU=">
Outlook for Android</a></p>
</div>
<div class="x_MsoNormal" align="center" style="margin-left:.5in; text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="x_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 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> </p>
<div>
<p class="x_MsoNormal" style="margin-left:.5in"> </p>
</div>
</div>
<div>
<div style="border:solid #9C6500 1.0pt; padding:2.0pt 2.0pt 2.0pt 2.0pt">
<p class="x_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.</span></p>
</div>
<p class="x_MsoNormal" style="margin-left:.5in"> </p>
<div>
<div>
<p class="x_xmsonormal" style="margin-left:.5in">I am trying to setup Syslog-NG t send output to Kakka. I am running ubuntu 18.04, Syslog-NG version 3.37.</p>
<p class="x_xmsonormal" style="margin-left:.5in"> </p>
<p class="x_xmsonormal" style="margin-left:.5in">This is my syslog-ng.conf   ( I have #scl.conf because if I don’t it tries to install kafka-java)</p>
<p class="x_xmsonormal" style="margin-left:.5in"> </p>
<p class="x_xmsonormal" style="margin-left:.5in"> </p>
<p class="x_xmsonormal" style="margin-left:.5in">@version: 3.37</p>
<p class="x_xmsonormal" style="margin-left:.5in">@define kafka-implementation kafka-c</p>
<p class="x_xmsonormal" style="margin-left:.5in">#@include "scl.conf"</p>
<p class="x_xmsonormal" style="margin-left:.5in"> </p>
<p class="x_xmsonormal" style="margin-left:.5in">destination d_kafka {</p>
<p class="x_xmsonormal" style="margin-left:.5in">  kafka(</p>
<p class="x_xmsonormal" style="margin-left:.5in">    bootstrap-servers("127.0.0.1:9092")</p>
<p class="x_xmsonormal" style="margin-left:.5in">    topic("{incoming}")</p>
<p class="x_xmsonormal" style="margin-left:.5in">  );</p>
<p class="x_xmsonormal" style="margin-left:.5in">};</p>
<p class="x_xmsonormal" style="margin-left:.5in"> </p>
<p class="x_xmsonormal" style="margin-left:.5in"> </p>
<p class="x_xmsonormal" style="margin-left:.5in">This is the error when I try and run sudo syslog-ng</p>
<p class="x_xmsonormal" style="margin-left:.5in"> </p>
<p class="x_xmsonormal" style="margin-left:.5in">Error parsing config, syntax error, unexpected LL_IDENTIFIER, expecting '}' in /etc/syslog-ng/syslog-ng.conf:6:3-6:8:</p>
<p class="x_xmsonormal" style="margin-left:.5in">1       @version: 3.37</p>
<p class="x_xmsonormal" style="margin-left:.5in">2       @define kafka-implementation kafka-c</p>
<p class="x_xmsonormal" style="margin-left:.5in">3       #@include "scl.conf"</p>
<p class="x_xmsonormal" style="margin-left:.5in">4</p>
<p class="x_xmsonormal" style="margin-left:.5in">5       destination d_kafka {</p>
<p class="x_xmsonormal" style="margin-left:.5in">6----->   kafka(</p>
<p class="x_xmsonormal" style="margin-left:.5in">6----->   ^^^^^</p>
<p class="x_xmsonormal" style="margin-left:.5in">7           bootstrap-servers("127.0.0.1:9092")</p>
<p class="x_xmsonormal" style="margin-left:.5in">8           topic("{incoming}")</p>
<p class="x_xmsonormal" style="margin-left:.5in">9         );</p>
<p class="x_xmsonormal" style="margin-left:.5in">10      };</p>
<p class="x_xmsonormal" style="margin-left:.5in"> </p>
<p class="x_xmsonormal" style="margin-left:.5in">Any help will be appreciated.</p>
<p class="x_xmsonormal" style="margin-left:.5in"> </p>
<p class="x_xmsonormal" style="margin-left:.5in">SKP</p>
<p class="x_xmsonormal" style="margin-left:.5in"> </p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>