<?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 Re: Combine DB Connect and Search Data in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Combine-DB-Connect-and-Search-Data/m-p/135744#M7506</link>
    <description>&lt;P&gt;Yes, you can use the DB Connect search commands and lookups.  The most common usage of DB Connect is to use lookups from a database table to enrich machine data.  &lt;/P&gt;

&lt;P&gt;That is well documented here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Setupadatabaselookuptable"&gt;Setup a lookup table&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;The other option is to use the DB connect search commands such as dbquery:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Commands"&gt;DB Connect search commands&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As an example, you could use dbquery on it's own or you could join it, use it in a subsearch, append it and more.&lt;/P&gt;

&lt;P&gt;Here is what the dbquery command looks like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| dbquery ASSET_DB "SELECT id,name, ip_address,owner,last_update FROM hosts WHERE active = 1"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;That should be pretty easy to understand.&lt;/P&gt;</description>
    <pubDate>Sun, 09 Feb 2014 21:20:49 GMT</pubDate>
    <dc:creator>okrabbe_splunk</dc:creator>
    <dc:date>2014-02-09T21:20:49Z</dc:date>
    <item>
      <title>Combine DB Connect and Search Data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Combine-DB-Connect-and-Search-Data/m-p/135742#M7504</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Yesterday I upgraded Splunk to 6.0.1 (thank god) and configured DB Connect to fetch from a database.&lt;/P&gt;

&lt;P&gt;I am trying to combine this database data with information coming in from log sources in my Search app.  Any recommendation on the easiest way to do this?&lt;/P&gt;

&lt;P&gt;-Can I send DB Connect data to Search?&lt;/P&gt;

&lt;P&gt;-Can I search DB Connect data from within Search without having to send to the Search index?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;B&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2014 21:17:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Combine-DB-Connect-and-Search-Data/m-p/135742#M7504</guid>
      <dc:creator>bcusick</dc:creator>
      <dc:date>2014-02-03T21:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Combine DB Connect and Search Data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Combine-DB-Connect-and-Search-Data/m-p/135743#M7505</link>
      <description>&lt;P&gt;Not sure I understand.  Do you want to send data from a database input to the main index?  Or something else?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2014 18:09:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Combine-DB-Connect-and-Search-Data/m-p/135743#M7505</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2014-02-06T18:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Combine DB Connect and Search Data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Combine-DB-Connect-and-Search-Data/m-p/135744#M7506</link>
      <description>&lt;P&gt;Yes, you can use the DB Connect search commands and lookups.  The most common usage of DB Connect is to use lookups from a database table to enrich machine data.  &lt;/P&gt;

&lt;P&gt;That is well documented here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Setupadatabaselookuptable"&gt;Setup a lookup table&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;The other option is to use the DB connect search commands such as dbquery:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Commands"&gt;DB Connect search commands&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As an example, you could use dbquery on it's own or you could join it, use it in a subsearch, append it and more.&lt;/P&gt;

&lt;P&gt;Here is what the dbquery command looks like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| dbquery ASSET_DB "SELECT id,name, ip_address,owner,last_update FROM hosts WHERE active = 1"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;That should be pretty easy to understand.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Feb 2014 21:20:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Combine-DB-Connect-and-Search-Data/m-p/135744#M7506</guid>
      <dc:creator>okrabbe_splunk</dc:creator>
      <dc:date>2014-02-09T21:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Combine DB Connect and Search Data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Combine-DB-Connect-and-Search-Data/m-p/135745#M7507</link>
      <description>&lt;P&gt;Adding a input type gave me exactly what I needed and even parsed the fields for me.  This tool just got so much more versatile. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 17:57:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Combine-DB-Connect-and-Search-Data/m-p/135745#M7507</guid>
      <dc:creator>bcusick</dc:creator>
      <dc:date>2014-02-18T17:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Combine DB Connect and Search Data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Combine-DB-Connect-and-Search-Data/m-p/135746#M7508</link>
      <description>&lt;P&gt;Great! Thanks okrabbe&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2015 14:10:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Combine-DB-Connect-and-Search-Data/m-p/135746#M7508</guid>
      <dc:creator>lopessp</dc:creator>
      <dc:date>2015-01-15T14:10:28Z</dc:date>
    </item>
  </channel>
</rss>

