<?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 Monitor SQLite database file with Splunk DB Connect in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitor-SQLite-database-file-with-Splunk-DB-Connect/m-p/294330#M35175</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I realized I needed to create an identity, according to the first link. I created one to mirror the config with no password. Now it's saying it can't get schemas.&lt;/P&gt;

&lt;P&gt;I read the following articles:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.splunk.com/blog/2016/09/13/using-db-connect-with-sqlite.html" target="_blank"&gt;https://www.splunk.com/blog/2016/09/13/using-db-connect-with-sqlite.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/DBX/3.1.1/DeployDBX/Installdatabasedrivers#Install_drivers_for_other_databases" target="_blank"&gt;http://docs.splunk.com/Documentation/DBX/3.1.1/DeployDBX/Installdatabasedrivers#Install_drivers_for_other_databases&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Latest DB Connect is running, Java 8 is installed, and SQL Explorer (under Data Lab) lists my connection. When I select my DB from the dropdown menu, I get "Invalid Database Connection". I can't find anything in the logs as to why it thinks that. I can see the SQLite driver listed under Drivers.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Configuration under ...\Splunk\etc\apps\splunk_app_db_connect\local&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;db_connection_types.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sqlite]
 displayName = SQLite
 serviceClass = com.splunk.dbx2.DefaultDBX2JDBC
 jdbcDriverClass = org.sqlite.JDBC
 jdbcUrlFormat = jdbc:sqlite:&amp;lt;database&amp;gt;
 ui_default_catalog = $database$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;db_connections.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
useConnectionPool = true
maxConnLifetimeMillis = 1800000
maxWaitMillis = 30000
maxTotalConn = 8
fetch_size = 100

[VPN]
connection_type = sqlite
database = C:/Rest/DB.SQLite
host = localhost
identity = owner
jdbcUrlFormat = jdbc:sqlite:&amp;lt;database&amp;gt;
jdbcUseSSL = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Tried &lt;CODE&gt;database = C:\Rest\DB.SQLite&lt;/CODE&gt;, &lt;CODE&gt;jdbcUrlFormat = jdbc:sqlite://&amp;lt;database&amp;gt;&lt;/CODE&gt;, and &lt;CODE&gt;database = C:\\Rest\\DB.SQLite&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:08:56 GMT</pubDate>
    <dc:creator>tmontney</dc:creator>
    <dc:date>2020-09-29T16:08:56Z</dc:date>
    <item>
      <title>Monitor SQLite database file with Splunk DB Connect</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitor-SQLite-database-file-with-Splunk-DB-Connect/m-p/294330#M35175</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I realized I needed to create an identity, according to the first link. I created one to mirror the config with no password. Now it's saying it can't get schemas.&lt;/P&gt;

&lt;P&gt;I read the following articles:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.splunk.com/blog/2016/09/13/using-db-connect-with-sqlite.html" target="_blank"&gt;https://www.splunk.com/blog/2016/09/13/using-db-connect-with-sqlite.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/DBX/3.1.1/DeployDBX/Installdatabasedrivers#Install_drivers_for_other_databases" target="_blank"&gt;http://docs.splunk.com/Documentation/DBX/3.1.1/DeployDBX/Installdatabasedrivers#Install_drivers_for_other_databases&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Latest DB Connect is running, Java 8 is installed, and SQL Explorer (under Data Lab) lists my connection. When I select my DB from the dropdown menu, I get "Invalid Database Connection". I can't find anything in the logs as to why it thinks that. I can see the SQLite driver listed under Drivers.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Configuration under ...\Splunk\etc\apps\splunk_app_db_connect\local&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;db_connection_types.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sqlite]
 displayName = SQLite
 serviceClass = com.splunk.dbx2.DefaultDBX2JDBC
 jdbcDriverClass = org.sqlite.JDBC
 jdbcUrlFormat = jdbc:sqlite:&amp;lt;database&amp;gt;
 ui_default_catalog = $database$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;db_connections.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
useConnectionPool = true
maxConnLifetimeMillis = 1800000
maxWaitMillis = 30000
maxTotalConn = 8
fetch_size = 100

[VPN]
connection_type = sqlite
database = C:/Rest/DB.SQLite
host = localhost
identity = owner
jdbcUrlFormat = jdbc:sqlite:&amp;lt;database&amp;gt;
jdbcUseSSL = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Tried &lt;CODE&gt;database = C:\Rest\DB.SQLite&lt;/CODE&gt;, &lt;CODE&gt;jdbcUrlFormat = jdbc:sqlite://&amp;lt;database&amp;gt;&lt;/CODE&gt;, and &lt;CODE&gt;database = C:\\Rest\\DB.SQLite&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:08:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitor-SQLite-database-file-with-Splunk-DB-Connect/m-p/294330#M35175</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2020-09-29T16:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor SQLite database file with Splunk DB Connect</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitor-SQLite-database-file-with-Splunk-DB-Connect/m-p/294331#M35176</link>
      <description>&lt;P&gt;Seems the answer is creating an identity, a step I missed due to quick reading. Created it to match the identity name in &lt;CODE&gt;db_connections.conf&lt;/CODE&gt;, with no password. The schema error is likely due to it being an unsupported and server-less DB.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Createandmanageidentities" target="_blank"&gt;http://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Createandmanageidentities&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Final configs are as follows:&lt;/P&gt;

&lt;P&gt;db_connections.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
useConnectionPool = true
maxConnLifetimeMillis = 1800000
maxWaitMillis = 30000
maxTotalConn = 8
fetch_size = 100

[VPN]
connection_type = sqlite
database = C:\Rest\DB.sqlite
host = localhost
identity = owner
jdbcUrlFormat = jdbc:sqlite:&amp;lt;database&amp;gt;
jdbcUseSSL = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;db_connection_types.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sqlite]
 displayName = SQLite
 serviceClass = com.splunk.dbx2.DefaultDBX2JDBC
 jdbcDriverClass = org.sqlite.JDBC
 jdbcUrlFormat = jdbc:sqlite:&amp;lt;database&amp;gt;
 ui_default_catalog = $database$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:08:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitor-SQLite-database-file-with-Splunk-DB-Connect/m-p/294331#M35176</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2020-09-29T16:08:58Z</dc:date>
    </item>
  </channel>
</rss>

