<?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 DBConnect 3.2.0 integration with MongoDB in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/DBConnect-3-2-0-integration-with-MongoDB/m-p/507032#M86284</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have problem getting Splunk to connect to MongoDB. Below are what i have done so far:&lt;/P&gt;&lt;P&gt;1. Download the driver from &lt;A href="https://raw.githubusercontent.com/michaelloliveira/traccar-mongodb/master/lib/mongodb_unityjdbc_full.jar" target="_blank" rel="nofollow noopener noreferrer"&gt;https://raw.githubusercontent.com/michaelloliveira/traccar-mongodb/master/lib/mongodb_unityjdbc_full...&lt;/A&gt; and copy it to drivers folder of dbconnect app&lt;/P&gt;&lt;P&gt;2. copy db_connection_types.conf from default to local folder, and add following line&lt;/P&gt;&lt;P&gt;[mongo]&lt;BR /&gt;displayName= MongoDB&lt;BR /&gt;jdbcDriverClass = mongodb.jdbc.MongoDriver&lt;BR /&gt;serviceClass = com.splunk.dbx2.DefaultDBX2JDBC&lt;BR /&gt;jdbcUrlFormat = jdbc:mongo://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;database&amp;gt;&lt;BR /&gt;#jdbcUrlSSLFormat = jdbc:mongo://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;database&amp;gt;&lt;BR /&gt;useConnectionPool = false&lt;BR /&gt;port = 27017&lt;BR /&gt;testQuery = SELECT 1&lt;/P&gt;&lt;P&gt;[mongo2]&lt;BR /&gt;displayName= MongoDB2&lt;BR /&gt;serviceClass = com.splunk.dbx2.DefaultDBX2JDBC&lt;BR /&gt;jdbcUrlFormat = jdbc:mongodb://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;database&amp;gt;&lt;BR /&gt;#jdbcUrlSSLFormat = jdbc:mongodb://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;database&amp;gt;&lt;BR /&gt;jdbcDriverClass = mongodb.jdbc.MongoDriver&lt;BR /&gt;port = 27017&lt;/P&gt;&lt;P&gt;3. Create identity for the connection. This account has readWrite permission on the database and tested working.&lt;/P&gt;&lt;P&gt;4. Restart Splunk. I can see driver can be detected for both MongoDB connection types&lt;/P&gt;&lt;P&gt;5. Create connection that use either MongoDB or MongoDB2. Both failed&lt;/P&gt;&lt;P&gt;Error for MongoDB:&lt;/P&gt;&lt;PRE&gt;not authorized for query on Test._schema&lt;/PRE&gt;&lt;P&gt;Error for MongoDB2:&lt;/P&gt;&lt;PRE&gt;No suitable driver found for jdbc:mongodb://si0vmc3134.de.bosch.com:30000/Test&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know what's wrong here? Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jul 2020 10:45:13 GMT</pubDate>
    <dc:creator>Cbr1sg</dc:creator>
    <dc:date>2020-07-02T10:45:13Z</dc:date>
    <item>
      <title>DBConnect 3.2.0 integration with MongoDB</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DBConnect-3-2-0-integration-with-MongoDB/m-p/507032#M86284</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have problem getting Splunk to connect to MongoDB. Below are what i have done so far:&lt;/P&gt;&lt;P&gt;1. Download the driver from &lt;A href="https://raw.githubusercontent.com/michaelloliveira/traccar-mongodb/master/lib/mongodb_unityjdbc_full.jar" target="_blank" rel="nofollow noopener noreferrer"&gt;https://raw.githubusercontent.com/michaelloliveira/traccar-mongodb/master/lib/mongodb_unityjdbc_full...&lt;/A&gt; and copy it to drivers folder of dbconnect app&lt;/P&gt;&lt;P&gt;2. copy db_connection_types.conf from default to local folder, and add following line&lt;/P&gt;&lt;P&gt;[mongo]&lt;BR /&gt;displayName= MongoDB&lt;BR /&gt;jdbcDriverClass = mongodb.jdbc.MongoDriver&lt;BR /&gt;serviceClass = com.splunk.dbx2.DefaultDBX2JDBC&lt;BR /&gt;jdbcUrlFormat = jdbc:mongo://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;database&amp;gt;&lt;BR /&gt;#jdbcUrlSSLFormat = jdbc:mongo://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;database&amp;gt;&lt;BR /&gt;useConnectionPool = false&lt;BR /&gt;port = 27017&lt;BR /&gt;testQuery = SELECT 1&lt;/P&gt;&lt;P&gt;[mongo2]&lt;BR /&gt;displayName= MongoDB2&lt;BR /&gt;serviceClass = com.splunk.dbx2.DefaultDBX2JDBC&lt;BR /&gt;jdbcUrlFormat = jdbc:mongodb://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;database&amp;gt;&lt;BR /&gt;#jdbcUrlSSLFormat = jdbc:mongodb://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;database&amp;gt;&lt;BR /&gt;jdbcDriverClass = mongodb.jdbc.MongoDriver&lt;BR /&gt;port = 27017&lt;/P&gt;&lt;P&gt;3. Create identity for the connection. This account has readWrite permission on the database and tested working.&lt;/P&gt;&lt;P&gt;4. Restart Splunk. I can see driver can be detected for both MongoDB connection types&lt;/P&gt;&lt;P&gt;5. Create connection that use either MongoDB or MongoDB2. Both failed&lt;/P&gt;&lt;P&gt;Error for MongoDB:&lt;/P&gt;&lt;PRE&gt;not authorized for query on Test._schema&lt;/PRE&gt;&lt;P&gt;Error for MongoDB2:&lt;/P&gt;&lt;PRE&gt;No suitable driver found for jdbc:mongodb://si0vmc3134.de.bosch.com:30000/Test&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know what's wrong here? Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 10:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DBConnect-3-2-0-integration-with-MongoDB/m-p/507032#M86284</guid>
      <dc:creator>Cbr1sg</dc:creator>
      <dc:date>2020-07-02T10:45:13Z</dc:date>
    </item>
  </channel>
</rss>

