<?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: DBConnect - Can we populate a lookup table from database data, on a period basis? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DBConnect-Can-we-populate-a-lookup-table-from-database-data-on-a/m-p/66009#M4097</link>
    <description>&lt;P&gt;Sorry for asking but i am noob.&lt;BR /&gt;
can you provide more info on script 'owned' by splunk User ID?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2013 14:03:19 GMT</pubDate>
    <dc:creator>0waste_splunk</dc:creator>
    <dc:date>2013-06-11T14:03:19Z</dc:date>
    <item>
      <title>DBConnect - Can we populate a lookup table from database data, on a period basis?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DBConnect-Can-we-populate-a-lookup-table-from-database-data-on-a/m-p/66007#M4095</link>
      <description>&lt;P&gt;I want to lookup data from my database and bring it into Splunk to add more information to my log events. However I do not want my seaches querying the database every time we run a search as it may be large load on the database. Is there any way that we can build an internal lookup table in Splunk by looking up the data in the database on a periodic basis and then using this lookup table for my searches?&lt;/P&gt;

&lt;P&gt;This eliminates the issue of querying the database for every search we run.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2013 13:30:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DBConnect-Can-we-populate-a-lookup-table-from-database-data-on-a/m-p/66007#M4095</guid>
      <dc:creator>jdunlea_splunk</dc:creator>
      <dc:date>2013-03-19T13:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: DBConnect - Can we populate a lookup table from database data, on a period basis?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DBConnect-Can-we-populate-a-lookup-table-from-database-data-on-a/m-p/66008#M4096</link>
      <description>&lt;P&gt;Have you considered running a scheduled script 'owned' by the Splunk User ID that would collect the data you want and rebuild the lookup table CSB file dynamically as a temp file then replace the 'real' lookup file once it is built? This would also give you the ability to archive older versions to any level you wanted.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2013 18:36:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DBConnect-Can-we-populate-a-lookup-table-from-database-data-on-a/m-p/66008#M4096</guid>
      <dc:creator>rgcurry</dc:creator>
      <dc:date>2013-05-08T18:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: DBConnect - Can we populate a lookup table from database data, on a period basis?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DBConnect-Can-we-populate-a-lookup-table-from-database-data-on-a/m-p/66009#M4097</link>
      <description>&lt;P&gt;Sorry for asking but i am noob.&lt;BR /&gt;
can you provide more info on script 'owned' by splunk User ID?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 14:03:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DBConnect-Can-we-populate-a-lookup-table-from-database-data-on-a/m-p/66009#M4097</guid>
      <dc:creator>0waste_splunk</dc:creator>
      <dc:date>2013-06-11T14:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: DBConnect - Can we populate a lookup table from database data, on a period basis?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DBConnect-Can-we-populate-a-lookup-table-from-database-data-on-a/m-p/66010#M4098</link>
      <description>&lt;P&gt;Yes I do this using a saved search in conjunction with Splunk's DBConnect App which has a 'dbquery' command. The saved search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbquery malcodefam "SELECT myfield1,myfield2,myfield3 FROM mytable" | FIELDS myfield1,myfield2,myfield3 | outputlookup mylookupfile.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;A saved search runs once every hour and replaces the lookup file for me. I'm on Splunk 4.3 and If my memory is correct, the OUTPUTLOOKUP command can only 'replace' the lookup file. In later versions I 'think' you can update the lookup file with new data as opposed to having to recreated the entire thing each time. It's not a big deal for me though because this is a small dbtable. The reason I did this is becacuse I don't want to provide access to the dbquery command to all users&lt;/P&gt;

&lt;P&gt;-j&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2013 14:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DBConnect-Can-we-populate-a-lookup-table-from-database-data-on-a/m-p/66010#M4098</guid>
      <dc:creator>jpass</dc:creator>
      <dc:date>2013-08-04T14:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: DBConnect - Can we populate a lookup table from database data, on a period basis?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DBConnect-Can-we-populate-a-lookup-table-from-database-data-on-a/m-p/66011#M4099</link>
      <description>&lt;P&gt;It is kept private versus set to app level or global.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 13:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DBConnect-Can-we-populate-a-lookup-table-from-database-data-on-a/m-p/66011#M4099</guid>
      <dc:creator>rgcurry</dc:creator>
      <dc:date>2013-08-21T13:06:35Z</dc:date>
    </item>
  </channel>
</rss>

