<?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 Splunk DB Connect connection to Hana in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311647#M37285</link>
    <description>&lt;P&gt;Has anyone configured Splunk DB Connect app to pull data from SAP Hana DB using ngdbc.jar?&lt;/P&gt;

&lt;P&gt;Do we need to add a new db connection type in db_connection_types.conf?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:17:23 GMT</pubDate>
    <dc:creator>dineshraj9</dc:creator>
    <dc:date>2020-09-29T16:17:23Z</dc:date>
    <item>
      <title>Splunk DB Connect connection to Hana</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311647#M37285</link>
      <description>&lt;P&gt;Has anyone configured Splunk DB Connect app to pull data from SAP Hana DB using ngdbc.jar?&lt;/P&gt;

&lt;P&gt;Do we need to add a new db connection type in db_connection_types.conf?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:17:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311647#M37285</guid>
      <dc:creator>dineshraj9</dc:creator>
      <dc:date>2020-09-29T16:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect connection to Hana</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311648#M37286</link>
      <description>&lt;P&gt;Do you have a JDBC driver for HANA? &lt;A href="http://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Installdatabasedrivers#Install_drivers_for_other_databases"&gt;http://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Installdatabasedrivers#Install_drivers_for_other_databases&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 02:13:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311648#M37286</guid>
      <dc:creator>jcoates</dc:creator>
      <dc:date>2017-10-23T02:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect connection to Hana</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311649#M37287</link>
      <description>&lt;P&gt;SAP provides the JDBC client, ngdbc.jar, which is found in the HANA HDB Client package. &lt;BR /&gt;
Put that driver in: &lt;EM&gt;$SPLUNK_HOME/etc/apps/splunk_app_db_connect/drivers&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;You will need to manually create a db_connection_types.conf in: &lt;BR /&gt;
&lt;EM&gt;$SPLUNK_HOME/etc/apps/splunk_app_db_connect/local&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;In this conf file, you need the following. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[hana]&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;displayName = HANA&lt;/P&gt;

&lt;P&gt;jdbcUrlFormat = jdbc:sap://:/&lt;/P&gt;

&lt;P&gt;jdbcDriverClass = com.sap.db.jdbc.Driver&lt;/P&gt;

&lt;P&gt;supportedVersions = 2.0&lt;/P&gt;

&lt;P&gt;Also be aware when setting up the connection, that the port is 3xx15 where xx is the HANA instance number. For example if instance 90, then port is 39015. Database is the HANA SID.&lt;/P&gt;

&lt;P&gt;Here is an example of a connection for HANA...&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/218650-screen-shot-2017-11-01-at-122359-pm.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;I've tested this with HANA Express Edition 2.0 and Splunk 7.0.0 and Splunk DB Connect 3.1.1&lt;/P&gt;

&lt;P&gt;Here is a successful connection...&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/218651-screen-shot-2017-11-01-at-121151-pm.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311649#M37287</guid>
      <dc:creator>djackson_splunk</dc:creator>
      <dc:date>2020-09-29T16:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect connection to Hana</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311650#M37288</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We are getting following error while connecting to HANA database using Splunk DB Connect App. Any suggestions?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-01-23 11:20:52.412 +1100  [QuartzScheduler_Worker-6] INFO  org.easybatch.core.job.BatchJob - Job 'HanaInput' starting
2018-01-23 11:20:52.412 +1100  [QuartzScheduler_Worker-6] INFO  org.easybatch.core.job.BatchJob - Batch size: 1,000
2018-01-23 11:20:52.412 +1100  [QuartzScheduler_Worker-6] INFO  org.easybatch.core.job.BatchJob - Error threshold: N/A
2018-01-23 11:20:52.412 +1100  [QuartzScheduler_Worker-6] INFO  org.easybatch.core.job.BatchJob - Jmx monitoring: false
2018-01-23 11:20:52.413 +1100  [QuartzScheduler_Worker-6] INFO  c.s.d.s.dbinput.recordreader.DbInputRecordReader - action=db_input_record_reader_is_opened input_task="HanaInput" query=SELECT key, value FROM sys.m_host_information;
2018-01-23 11:20:52.418 +1100  [QuartzScheduler_Worker-6] ERROR org.easybatch.core.job.BatchJob - Unable to open record reader
java.lang.NullPointerException: null
    at com.splunk.dbx.server.dbinput.recordreader.DbInputRecordReader.isOracleInput(DbInputRecordReader.java:111)
    at com.splunk.dbx.server.dbinput.recordreader.DbInputRecordReader.getRowProcessor(DbInputRecordReader.java:105)
    at com.splunk.dbx.server.dbinput.recordreader.DbInputRecordReader.open(DbInputRecordReader.java:89)
    at org.easybatch.core.job.BatchJob.openReader(BatchJob.java:117)
    at org.easybatch.core.job.BatchJob.call(BatchJob.java:74)
    at org.easybatch.extensions.quartz.Job.execute(Job.java:59)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
2018-01-23 11:20:52.418 +1100  [QuartzScheduler_Worker-6] INFO  org.easybatch.core.job.BatchJob - Job 'HanaInput' finished with status: FAILED
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 02:10:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311650#M37288</guid>
      <dc:creator>rajeshmeea21</dc:creator>
      <dc:date>2018-01-23T02:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect connection to Hana</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311651#M37289</link>
      <description>&lt;P&gt;Same problem here. Interestingly when creating the DB Input task it works. But when the job is getting executed I get connection refused.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 08:59:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311651#M37289</guid>
      <dc:creator>martingutmann</dc:creator>
      <dc:date>2018-03-20T08:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect connection to Hana</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311652#M37290</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I get the same error:&lt;/P&gt;

&lt;P&gt;2018-03-20 11:04:50.927 +0100  [QuartzScheduler_Worker-5] ERROR org.easybatch.core.job.BatchJob - Unable to open record reader&lt;BR /&gt;
java.lang.NullPointerException: null&lt;BR /&gt;
    at com.splunk.dbx.server.dbinput.recordreader.DbInputRecordReader.isOracleInput(DbInputRecordReader.java:113)&lt;BR /&gt;
    at com.splunk.dbx.server.dbinput.recordreader.DbInputRecordReader.getRowProcessor(DbInputRecordReader.java:107)&lt;BR /&gt;
    at com.splunk.dbx.server.dbinput.recordreader.DbInputRecordReader.open(DbInputRecordReader.java:91)&lt;BR /&gt;
    at org.easybatch.core.job.BatchJob.openReader(BatchJob.java:117)&lt;BR /&gt;
    at org.easybatch.core.job.BatchJob.call(BatchJob.java:74)&lt;BR /&gt;
    at org.easybatch.extensions.quartz.Job.execute(Job.java:59)&lt;BR /&gt;
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)&lt;BR /&gt;
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)&lt;/P&gt;

&lt;P&gt;When I configure the DB Input I can pull the data in the wizard. (It's slow but it works)&lt;/P&gt;

&lt;P&gt;I had to configure HANA in the default folder. Otherwise it would never show up as a connection type.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 10:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311652#M37290</guid>
      <dc:creator>martingutmann</dc:creator>
      <dc:date>2018-03-20T10:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect connection to Hana</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311653#M37291</link>
      <description>&lt;P&gt;&lt;CODE&gt;2018-01-23 11:20:52.418 +1100  [QuartzScheduler_Worker-6] ERROR org.easybatch.core.job.BatchJob - Unable to open record reader&lt;/CODE&gt;&lt;BR /&gt;
looks like it's unable to communicate with the database -- did you follow djackson's instructions on this page? If so, I would check database permissions for the service account you've selected.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 15:22:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311653#M37291</guid>
      <dc:creator>jcoates</dc:creator>
      <dc:date>2018-03-20T15:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect connection to Hana</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311654#M37292</link>
      <description>&lt;P&gt;if you can create an input successfully but it then can't run, there's two possibilities I can think of:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;You're running in a different Splunk context than you created the input in and can't access the DB Connect artifacts needed&lt;/LI&gt;
&lt;LI&gt;The database is returning something different in production than it returned in testing, causing DB Connect or Splunk to reject the data instead of indexing it.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 20 Mar 2018 15:24:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311654#M37292</guid>
      <dc:creator>jcoates</dc:creator>
      <dc:date>2018-03-20T15:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect connection to Hana</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311655#M37293</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
Thanks for your suggestions.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;I gave the connection full read &amp;amp; write permission. I tried both Splunk DB Connect and Search &amp;amp; Reporting as the app. &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;This is a simple set up on my laptop. Both Splunk (local installation on Windows) and HANA (running in VM Ware) are the same.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;I tried limiting the number of rows and columns to 1x10. Does not help.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;I am a bit confused about the isOracleInput in the Java error log.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 20 Mar 2018 16:18:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311655#M37293</guid>
      <dc:creator>martingutmann</dc:creator>
      <dc:date>2018-03-20T16:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect connection to Hana</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311656#M37294</link>
      <description>&lt;P&gt;@djackson I have installed ngdbc.jar driver as mentioned and Splunk has picked up the driver.&lt;/P&gt;

&lt;P&gt;Able to retrieve results using SQL Explorer&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-07-30 04:16:14.901 -0700 INFO  c.s.dbx.server.task.listeners.JobMetricsListener - action=collect_job_metrics connection=HANA1400 jdbc_url=jdbc:sap://hostname:30015/tenant status=FAILED input_name=MYINPUT_NAME batch_size=1000 error_threshold=N/A is_jmx_monitoring=false start_time=2018-07-30_04:15:16 end_time=2018-07-30_04:16:14 duration=58477 read_count=0 write_count=0 filtered_count=0 error_count=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, scheduling data inputs is failing with &lt;STRONG&gt;status=FAILED&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Tried enabling debug logs but the logging is always &lt;STRONG&gt;INFO&lt;/STRONG&gt; Is there something I am missing?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 12:14:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/311656#M37294</guid>
      <dc:creator>syedabdulkather</dc:creator>
      <dc:date>2018-07-30T12:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect connection to Hana</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/542658#M65051</link>
      <description>&lt;P&gt;HEY &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/75250"&gt;@djackson_splunk&lt;/a&gt;&amp;nbsp; &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/61462"&gt;@jcoates&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also trying to connect to the SAP database via db connect app (version -&amp;nbsp;&lt;SPAN&gt;3.4.2) and I came across your solution but its not working for me.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;As per your answer I placed the ngdbc.jar file in this directory&amp;nbsp;&lt;EM&gt;$SPLUNK_HOME/etc/apps/splunk_app_db_connect/drivers&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;as well as created the db_connection_types.conf in the&amp;nbsp;&lt;EM&gt;$SPLUNK_HOME/etc/apps/splunk_app_db_connect/local&amp;nbsp;&lt;/EM&gt;directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are my config of the db_connection_types.conf file.&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;displayName = SAP HANA&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;serviceClass = com.splunk.dbx2.DefaultDBX2JDBC&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;jdbcUrlFormat = jdbc:sap://:/&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;jdbcDriverClass = com.sap.cloud.db.jdbc&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;database = XXXXXXX&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;&lt;SPAN class="s1"&gt;port = 41608&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;I see the connection is up in the UI but its not picking up the driver (Note - driver is there in the directory)&lt;/P&gt;&lt;P class="p1"&gt;Please help me with this issue or let me know where am I going wrong with above configuration. Your help is appreciated.&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Links I referred -&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;A href="https://docs.splunk.com/Documentation/DBX/3.4.2/DeployDBX/databasespec" target="_blank"&gt;https://docs.splunk.com/Documentation/DBX/3.4.2/DeployDBX/databasespec&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Installdatabasedrivers#Install_drivers_for_other_databases" target="_blank"&gt;https://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Installdatabasedrivers#Install_drivers_for_other_databases&lt;/A&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Mar 2021 22:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-connection-to-Hana/m-p/542658#M65051</guid>
      <dc:creator>jbhojak</dc:creator>
      <dc:date>2021-03-05T22:01:15Z</dc:date>
    </item>
  </channel>
</rss>

