<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Any quick startup guide to do end-to-end testing from kafka to Splunk. in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Any-quick-startup-guide-to-do-end-to-end-testing-from-kafka-to/m-p/406326#M49535</link>
    <description>&lt;P&gt;If you got any cheat sheet that I can setup kafka to send event to Splunk, that would help.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jan 2019 04:04:02 GMT</pubDate>
    <dc:creator>daniel_splunk</dc:creator>
    <dc:date>2019-01-16T04:04:02Z</dc:date>
    <item>
      <title>Any quick startup guide to do end-to-end testing from kafka to Splunk.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Any-quick-startup-guide-to-do-end-to-end-testing-from-kafka-to/m-p/406326#M49535</link>
      <description>&lt;P&gt;If you got any cheat sheet that I can setup kafka to send event to Splunk, that would help.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 04:04:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Any-quick-startup-guide-to-do-end-to-end-testing-from-kafka-to/m-p/406326#M49535</guid>
      <dc:creator>daniel_splunk</dc:creator>
      <dc:date>2019-01-16T04:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Any quick startup guide to do end-to-end testing from kafka to Splunk.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Any-quick-startup-guide-to-do-end-to-end-testing-from-kafka-to/m-p/406327#M49536</link>
      <description>&lt;P&gt;I did that kafka setup before and below is based on centos 7.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;yum upgrade&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;yum install java-1.8.0-openjdk&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;download kafka&lt;BR /&gt;
Here is the splunkbase link but it will point you to Github&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/3862/" target="_blank"&gt;https://splunkbase.splunk.com/app/3862/&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Once you downloaded kafka, untar it and rename the directory&lt;/P&gt;

&lt;P&gt;tar -xzf kafka_2.11-2.1.0.tgz&lt;BR /&gt;
mv kafka_2.11-2.0.0 kafka&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Start kafka zookeeper and server&lt;/P&gt;

&lt;P&gt;cd kafka&lt;BR /&gt;
bin/zookeeper-server-start.sh config/zookeeper.properties &amp;gt; zookeeper.log &amp;amp;&lt;BR /&gt;
bin/kafka-server-start.sh config/server.properties &amp;gt; kafka_server.log &amp;amp;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Create kafka topic&lt;/P&gt;

&lt;P&gt;bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test&lt;/P&gt;

&lt;P&gt;Below command can be used to list/delete topic as well.&lt;/P&gt;

&lt;P&gt;bin/kafka-topics.sh --list --zookeeper localhost:2181&lt;BR /&gt;
bin/kafka-topics.sh --zookeeper localhost:2181 --delete --topic test&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Send some event to topic "test" so that you can get it from kafka connect later&lt;/P&gt;

&lt;P&gt;bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;this is a test message&lt;BR /&gt;
^C&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Check the worker properties file. Make sure the following settings are set correctly.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  key.converter=org.apache.kafka.connect.storage.StringConverter
value.converter=org.apache.kafka.connect.storage.StringConverter

key.converter.schemas.enable=false
value.converter.schemas.enable=false

internal.key.converter.schemas.enable=false
internal.value.converter.schemas.enable=false
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Start Splunk-kafka-connect&lt;/P&gt;

&lt;P&gt;bin/connect-distributed.sh config/connect-distributed.properties &amp;gt; Kafka_connect.log &amp;amp;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Create HEC connector in Splunk&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Create splunk-kafka-connect task&lt;/P&gt;

&lt;P&gt;curl &lt;A href="http://localhost:8083/connectors" target="_blank"&gt;http://localhost:8083/connectors&lt;/A&gt; -X POST -H "Content-Type: application/json" -d '{&lt;BR /&gt;
"name": "test-single-event",&lt;BR /&gt;
"config": {&lt;BR /&gt;
   "connector.class": "com.splunk.kafka.connect.SplunkSinkConnector",&lt;BR /&gt;
   "tasks.max": "1",&lt;BR /&gt;
   "topics":"test",&lt;BR /&gt;
   "splunk.sources": "test_kafka_event",&lt;BR /&gt;
   "splunk.indexes": "kafka_event",&lt;BR /&gt;
   "splunk.hec.uri": "&lt;A href="https://localhost:8088" target="_blank"&gt;https://localhost:8088&lt;/A&gt;",&lt;BR /&gt;
   "splunk.hec.token": "26faccb6-a0af-45d6-996e-7df97afb81fd",&lt;BR /&gt;
   "splunk.hec.raw": "false",&lt;BR /&gt;
   "splunk.hec.ack.enabled": "false",&lt;BR /&gt;
   "splunk.hec.ack.poll.interval": "10",&lt;BR /&gt;
   "splunk.hec.ack.poll.threads": "1",&lt;BR /&gt;
   "splunk.hec.ssl.validate.certs": "false",&lt;BR /&gt;
   "splunk.hec.http.keepalive": "true",&lt;BR /&gt;
   "splunk.hec.max.http.connection.per.channel": "4",&lt;BR /&gt;
   "splunk.hec.total.channels": "8",&lt;BR /&gt;
   "splunk.hec.max.batch.size": "500",&lt;BR /&gt;
   "splunk.hec.threads": "1",&lt;BR /&gt;
   "splunk.hec.event.timeout": "300",&lt;BR /&gt;
   "splunk.hec.socket.timeout": "120",&lt;BR /&gt;
   "splunk.hec.track.data": "true"&lt;BR /&gt;
  }&lt;BR /&gt;
}’&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Any-quick-startup-guide-to-do-end-to-end-testing-from-kafka-to/m-p/406327#M49536</guid>
      <dc:creator>daniel_splunk</dc:creator>
      <dc:date>2020-09-29T22:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Any quick startup guide to do end-to-end testing from kafka to Splunk.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Any-quick-startup-guide-to-do-end-to-end-testing-from-kafka-to/m-p/406328#M49537</link>
      <description>&lt;P&gt;Hey@daniel,&lt;/P&gt;

&lt;P&gt;You can try referring this link:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/KafkaConnect/1.1.0/User/InstallSplunkKafkaConnect"&gt;https://docs.splunk.com/Documentation/KafkaConnect/1.1.0/User/InstallSplunkKafkaConnect&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 05:53:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Any-quick-startup-guide-to-do-end-to-end-testing-from-kafka-to/m-p/406328#M49537</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2019-01-16T05:53:03Z</dc:date>
    </item>
  </channel>
</rss>

