<?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: Database to file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Database-to-file/m-p/188210#M98476</link>
    <description>&lt;P&gt;Oracle SQL Developer&lt;/P&gt;</description>
    <pubDate>Fri, 14 Mar 2014 13:26:29 GMT</pubDate>
    <dc:creator>harshavrath</dc:creator>
    <dc:date>2014-03-14T13:26:29Z</dc:date>
    <item>
      <title>Database to file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Database-to-file/m-p/188208#M98474</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Is there a way to extract data from an database on regular intervals &amp;amp; save it in an file which can be supplied to Splunk as input.&lt;/P&gt;

&lt;P&gt;I don't want to use Splunk Db Connect initially my boss wants to try the manual way.&lt;/P&gt;

&lt;P&gt;I got to know Scripts can be used for this purpose.&lt;/P&gt;

&lt;P&gt;I need some specific information on how it can be done.&lt;/P&gt;

&lt;P&gt;Any help is appreciated.&lt;/P&gt;

&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 13:12:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Database-to-file/m-p/188208#M98474</guid>
      <dc:creator>harshavrath</dc:creator>
      <dc:date>2014-03-14T13:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Database to file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Database-to-file/m-p/188209#M98475</link>
      <description>&lt;P&gt;What kind of database is it?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 13:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Database-to-file/m-p/188209#M98475</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2014-03-14T13:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Database to file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Database-to-file/m-p/188210#M98476</link>
      <description>&lt;P&gt;Oracle SQL Developer&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 13:26:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Database-to-file/m-p/188210#M98476</guid>
      <dc:creator>harshavrath</dc:creator>
      <dc:date>2014-03-14T13:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Database to file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Database-to-file/m-p/188211#M98477</link>
      <description>&lt;P&gt;Approach 1:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1) Create a script in python that will connect to your database and get the results you need to from your database.
2) Configure a data input script in splunk to schedule your script to run in the intervals you need. In the configuration of this data input, you specify the index where the results will stored in splunk for future retrieval and along with its source type.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Approach 2:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1) Install SplunkDB in your splunk instance.
2) Configure the DB connection to access the database you need.
3) Create a scheduled search for the intervals you need. The schedule search contains the SQL query that will retrieve the information you need from your database. In the configuration of this scheduled search, you specify the index where the results will stored in splunk for future retrieval and along with its source type.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Mar 2014 13:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Database-to-file/m-p/188211#M98477</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2014-03-14T13:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Database to file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Database-to-file/m-p/188212#M98478</link>
      <description>&lt;P&gt;Hi Ipolo,&lt;BR /&gt;
can you give any specifics as how to create a script any source that i can refer to.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 14:11:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Database-to-file/m-p/188212#M98478</guid>
      <dc:creator>harshavrath</dc:creator>
      <dc:date>2014-03-14T14:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Database to file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Database-to-file/m-p/188213#M98479</link>
      <description>&lt;P&gt;This might be a start point:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Setupcustominputs#Add_a_scripted_input_via_inputs.conf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Setupcustominputs#Add_a_scripted_input_via_inputs.conf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 14:31:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Database-to-file/m-p/188213#M98479</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2014-03-14T14:31:56Z</dc:date>
    </item>
  </channel>
</rss>

