<div dir="ltr"><div>You probably don't have the kafka-c driver installed, this can happen as ubuntu 18.04 does not have the required librdkafka libraries. If I remember correctly, we don't even supply Xenial packages, but I might be wrong there. How did you acquire 3.37.1 for Ubuntu Xenial?</div><div><br></div><div>Our ubuntu-focal packages do have kafka-c, if you check out the build logs, it's included: <a href="https://github.com/syslog-ng/syslog-ng/runs/6776527081?check_suite_focus=true">https://github.com/syslog-ng/syslog-ng/runs/6776527081?check_suite_focus=true</a></div><div><br></div><div>```<br></div><div><span class="gmail-CheckStep-line-content gmail-d-inline-block gmail-flex-auto gmail-ml-3 gmail-js-check-line-content"><span class="gmail-">  Kafka support (module)      : yes</span></span></div><div>```<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 15, 2022 at 8:29 AM Sanjay Patel <<a href="mailto:skp@smarthive.io">skp@smarthive.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" lang="EN-US"><div class="gmail-m_-7464560312515807291WordSection1"><p class="MsoNormal">Attila,<u></u><u></u></p><p class="MsoNormal">Thanks for the response. Here is the response with your requested change.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></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:<u></u><u></u></p><p class="MsoNormal">1<u></u><u></u></p><p class="MsoNormal">2       #Start Block block destination kafka() at /usr/share/syslog-ng/include/scl/kafka/kafka.conf:24<u></u><u></u></p><p class="MsoNormal">3<u></u><u></u></p><p class="MsoNormal">4----->     kafka-c(bootstrap_servers("<a href="http://127.0.0.1:9092" target="_blank">127.0.0.1:9092</a>") topic("{incoming}") );<u></u><u></u></p><p class="MsoNormal">4----->     ^^^^^^^<u></u><u></u></p><p class="MsoNormal">5<u></u><u></u></p><p class="MsoNormal">6       #End Block block destination kafka() at /usr/share/syslog-ng/include/scl/kafka/kafka.conf:24<u></u><u></u></p><p class="MsoNormal">7<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Included from /etc/syslog-ng/syslog-ng.conf:6:3-9:4:<u></u><u></u></p><p class="MsoNormal">1       @version: 3.37<u></u><u></u></p><p class="MsoNormal">2       @include "scl.conf"<u></u><u></u></p><p class="MsoNormal">3       @define kafka-implementation kafka-c<u></u><u></u></p><p class="MsoNormal">4<u></u><u></u></p><p class="MsoNormal">5       destination d_kafka {<u></u><u></u></p><p class="MsoNormal">6----->   kafka(<u></u><u></u></p><p class="MsoNormal">6----->   ^^^^^^^<u></u><u></u></p><p class="MsoNormal">7----->     bootstrap-servers("<a href="http://127.0.0.1:9092" target="_blank">127.0.0.1:9092</a>")<u></u><u></u></p><p class="MsoNormal">8----->     topic("{incoming}")<u></u><u></u></p><p class="MsoNormal">9----->   );<u></u><u></u></p><p class="MsoNormal">10      };<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><div><div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0in 0in"><p class="MsoNormal" style="margin-left:0.5in"><b>From:</b> syslog-ng <<a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank">syslog-ng-bounces@lists.balabit.hu</a>> <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 <<a href="mailto:syslog-ng@lists.balabit.hu" target="_blank">syslog-ng@lists.balabit.hu</a>><br><b>Subject:</b> Re: [syslog-ng] Kafka-c issues<u></u><u></u></p></div></div><p class="MsoNormal" style="margin-left:0.5in"><u></u> <u></u></p><div><p class="MsoNormal" style="margin-left:0.5in;background:white none repeat scroll 0% 0%"><span style="font-size:12pt;color:black">Hi Sanjay,<u></u><u></u></span></p></div><div><p class="MsoNormal" style="margin-left:0.5in;background:white none repeat scroll 0% 0%"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p></div><div><p class="MsoNormal" style="margin-left:0.5in;background:white none repeat scroll 0% 0%"><span style="font-size:12pt;color:black">Can you try switching the define and the include, like:<u></u><u></u></span></p></div><div><p class="MsoNormal" style="margin-left:0.5in;background:white none repeat scroll 0% 0%"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p></div><div><p class="MsoNormal" style="margin-left:0.5in;background:white none repeat scroll 0% 0%"><span style="font-size:12pt;color:black">@version: 3.37 <u></u><u></u></span></p><div><p class="MsoNormal" style="margin-left:0.5in;background:white none repeat scroll 0% 0%"><span style="font-size:12pt;color:black;background:white none repeat scroll 0% 0%">@include "scl.conf"</span><span style="font-size:12pt;color:black"><u></u><u></u></span></p></div><div><p class="MsoNormal" style="margin-left:0.5in;background:white none repeat scroll 0% 0%"><span style="font-size:12pt;color:black">@define kafka-implementation kafka-c<u></u><u></u></span></p></div><div><p class="MsoNormal" style="margin-left:0.5in;background:white none repeat scroll 0% 0%"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p></div><div><p class="MsoNormal" style="margin-left:0.5in;background:white none repeat scroll 0% 0%"><span style="font-size:12pt;color:black">...<u></u><u></u></span></p></div><div><p class="MsoNormal" style="margin-left:0.5in;background:white none repeat scroll 0% 0%"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p></div><div><p class="MsoNormal" style="margin-left:0.5in;background:white none repeat scroll 0% 0%"><span style="font-size:12pt;color:black">Cheers,<u></u><u></u></span></p></div><div><p class="MsoNormal" style="margin-left:0.5in;background:white none repeat scroll 0% 0%"><span style="font-size:12pt;color:black">Attila<u></u><u></u></span></p></div><div><p class="MsoNormal" style="margin-left:0.5in;background:white none repeat scroll 0% 0%"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p></div></div><div class="MsoNormal" style="margin-left:0.5in;text-align:center" align="center"><hr width="98%" size="2" align="center"></div><div id="gmail-m_-7464560312515807291divRplyFwdMsg"><p class="MsoNormal" style="margin-left:0.5in"><b><span style="color:black">From:</span></b><span style="color:black"> syslog-ng <<a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank">syslog-ng-bounces@lists.balabit.hu</a>> on behalf of Sanjay Patel <<a href="mailto:skp@smarthive.io" target="_blank">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" target="_blank">syslog-ng@lists.balabit.hu</a>><br><b>Subject:</b> Re: [syslog-ng] Kafka-c issues</span> <u></u><u></u></p><div><p class="MsoNormal" style="margin-left:0.5in"> <u></u><u></u></p></div></div><div><div style="border:1pt solid rgb(156,101,0);padding:2pt"><p class="MsoNormal" style="margin-left:0.5in;line-height:12pt;background:rgb(255,235,156) none repeat scroll 0% 0%"><b><span style="font-size:10pt;color:rgb(156,101,0)">CAUTION:</span></b><span style="font-size:10pt;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.<u></u><u></u></span></p></div><p class="MsoNormal" style="margin-left:0.5in"><u></u> <u></u></p><div><div><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">Here is what happens when I include it. It tires to use kafka-java<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in"> <u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.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:<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">1<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">2       #Start Block block destination kafka() at /usr/share/syslog-ng/include/scl/kafka/kafka.conf:24<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">3<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">4----->     kafka-java(bootstrap_servers("<a href="http://127.0.0.1:9092" target="_blank">127.0.0.1:9092</a>") topic("{incoming}") );<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">4----->     ^^^^^^^^^^<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">5<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">6       #End Block block destination kafka() at /usr/share/syslog-ng/include/scl/kafka/kafka.conf:24<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">7<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in"> <u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">Included from /etc/syslog-ng/syslog-ng.conf:6:3-9:4:<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">1       @version: 3.37<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">2       @define kafka-implementation kafka-c<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">3       @include "scl.conf"<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">4<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">5       destination d_kafka {<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">6----->   kafka(<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">6----->   ^^^^^^^<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">7----->     bootstrap-servers("<a href="http://127.0.0.1:9092" target="_blank">127.0.0.1:9092</a>")<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">8----->     topic("{incoming}")<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">9----->   );<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in">10      };<u></u><u></u></p><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:0.5in"> <u></u><u></u></p><div><div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0in 0in"><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:1in"><b>From:</b> syslog-ng <<a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank">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" target="_blank">syslog-ng@lists.balabit.hu</a>><br><b>Subject:</b> Re: [syslog-ng] Kafka-c issues<u></u><u></u></p></div></div><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:1in"> <u></u><u></u></p><div><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:1in">hello,<u></u><u></u></p></div><div><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:1in;background:white none repeat scroll 0% 0%"><span style="color:rgb(33,33,33)"> </span><u></u><u></u></p></div><div><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:1in;background:white none repeat scroll 0% 0%"><span style="color:rgb(33,33,33)">the @include is required for kafka, but you commented out with #</span><u></u><u></u></p></div><div><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:1in;background:white none repeat scroll 0% 0%"><span style="color:rgb(33,33,33)"> </span><u></u><u></u></p></div><div><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:1in;background:white none repeat scroll 0% 0%"><span style="color:rgb(33,33,33)">--</span><u></u><u></u></p></div><div><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:1in;background:white none repeat scroll 0% 0%"><span style="color:rgb(33,33,33)">kokan</span><u></u><u></u></p></div><div><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:1in"> <u></u><u></u></p></div><div id="gmail-m_-7464560312515807291x_ms-outlook-mobile-signature"><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:1in">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" target="_blank">Outlook for Android</a><u></u><u></u></p></div><div style="margin-left:0.5in"><div class="MsoNormal" style="margin-left:0.5in;text-align:center" align="center"><hr width="98%" size="2" align="center"></div></div><div id="gmail-m_-7464560312515807291x_divRplyFwdMsg"><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:1in"><b><span style="color:black">From:</span></b><span style="color:black"> syslog-ng <<a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank">syslog-ng-bounces@lists.balabit.hu</a>> on behalf of Sanjay Patel <<a href="mailto:skp@smarthive.io" target="_blank">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" target="_blank">syslog-ng@lists.balabit.hu</a> <<a href="mailto:syslog-ng@lists.balabit.hu" target="_blank">syslog-ng@lists.balabit.hu</a>><br><b>Subject:</b> [syslog-ng] Kafka-c issues</span> <u></u><u></u></p><div><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:1in"> <u></u><u></u></p></div></div><div><div style="border:1pt solid rgb(156,101,0);padding:2pt"><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:1in;line-height:12pt;background:rgb(255,235,156) none repeat scroll 0% 0%"><b><span style="font-size:10pt;color:rgb(156,101,0)">CAUTION:</span></b><span style="font-size:10pt;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><u></u><u></u></p></div><p class="gmail-m_-7464560312515807291xmsonormal" style="margin-left:1in"> <u></u><u></u></p><div><div><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">I am trying to setup Syslog-NG t send output to Kakka. I am running ubuntu 18.04, Syslog-NG version 3.37.<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in"> <u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">This is my syslog-ng.conf   ( I have #scl.conf because if I don’t it tries to install kafka-java)<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in"> <u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in"> <u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">@version: 3.37<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">@define kafka-implementation kafka-c<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">#@include "scl.conf"<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in"> <u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">destination d_kafka {<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">  kafka(<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">    bootstrap-servers("<a href="http://127.0.0.1:9092" target="_blank">127.0.0.1:9092</a>")<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">    topic("{incoming}")<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">  );<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">};<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in"> <u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in"> <u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">This is the error when I try and run sudo syslog-ng<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in"> <u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">Error parsing config, syntax error, unexpected LL_IDENTIFIER, expecting '}' in /etc/syslog-ng/syslog-ng.conf:6:3-6:8:<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">1       @version: 3.37<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">2       @define kafka-implementation kafka-c<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">3       #@include "scl.conf"<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">4<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">5       destination d_kafka {<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">6----->   kafka(<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">6----->   ^^^^^<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">7           bootstrap-servers("<a href="http://127.0.0.1:9092" target="_blank">127.0.0.1:9092</a>")<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">8           topic("{incoming}")<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">9         );<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">10      };<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in"> <u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">Any help will be appreciated.<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in"> <u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in">SKP<u></u><u></u></p><p class="gmail-m_-7464560312515807291xxmsonormal" style="margin-left:1in"> <u></u><u></u></p></div></div></div></div></div></div></div></div>______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Bazsi</div>