<?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 Is there any way to force a database input dump of a SQL table to run via script? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-way-to-force-a-database-input-dump-of-a-SQL-table/m-p/138908#M28541</link>
    <description>&lt;P&gt;I have SQL table that is cleaned and populated every week . &lt;BR /&gt;
Using a db tail wont work because all data is regenerated  and there is no ID column . &lt;/P&gt;

&lt;P&gt;Is there any way to force a db dump of this table via script  so I can automate cleaning this index and load the table again ? &lt;/P&gt;</description>
    <pubDate>Wed, 24 Sep 2014 18:10:18 GMT</pubDate>
    <dc:creator>ViniciusANT</dc:creator>
    <dc:date>2014-09-24T18:10:18Z</dc:date>
    <item>
      <title>Is there any way to force a database input dump of a SQL table to run via script?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-way-to-force-a-database-input-dump-of-a-SQL-table/m-p/138908#M28541</link>
      <description>&lt;P&gt;I have SQL table that is cleaned and populated every week . &lt;BR /&gt;
Using a db tail wont work because all data is regenerated  and there is no ID column . &lt;/P&gt;

&lt;P&gt;Is there any way to force a db dump of this table via script  so I can automate cleaning this index and load the table again ? &lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2014 18:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-way-to-force-a-database-input-dump-of-a-SQL-table/m-p/138908#M28541</guid>
      <dc:creator>ViniciusANT</dc:creator>
      <dc:date>2014-09-24T18:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to force a database input dump of a SQL table to run via script?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-way-to-force-a-database-input-dump-of-a-SQL-table/m-p/138909#M28542</link>
      <description>&lt;P&gt;DB Connect also allows for full table dumps; they don't need to be dbtail. See &lt;A href="http://docs.splunk.com/Documentation/DBX/1.1.4/DeployDBX/Configuredatabasemonitoring"&gt;the documentation&lt;/A&gt; and the &lt;A href="http://docs.splunk.com/Documentation/DBX/1.1.4/DeployDBX/inputsspec"&gt;inputs.conf specification&lt;/A&gt; for more detail, as well as &lt;A href="http://answers.splunk.com/answers/148353/dbconnect-changing-the-date-column-value-automatically-to-wrong-date.html#answer-148402"&gt;this post&lt;/A&gt; on timestamping data correctly as it is indexed into Splunk. A sample dbdump input looks like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dbmon-dump://mySQL/MyDump]
output.format = kv
output.timestamp = 1
output.timestamp.column = last_update
query = SELECT A.address_id, A.address, A.last_update AS last_update, C.city FROM address A, city C WHERE C.city_id=A.city_id ORDER BY A.city_id
sourcetype = mysourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would also recommend reading &lt;A href="https://apps.splunk.com/app/1538/"&gt;Real-Time Log File Analysis for Oracle 11g&lt;/A&gt; for further ideas on how to get data from or about Oracle into Splunk. &lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 00:37:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-way-to-force-a-database-input-dump-of-a-SQL-table/m-p/138909#M28542</guid>
      <dc:creator>pmdba</dc:creator>
      <dc:date>2014-09-26T00:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to force a database input dump of a SQL table to run via script?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-way-to-force-a-database-input-dump-of-a-SQL-table/m-p/138910#M28543</link>
      <description>&lt;P&gt;Note that the schedule for the dump can also be defined in inputs.conf. No need for a separate script...&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 00:38:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-any-way-to-force-a-database-input-dump-of-a-SQL-table/m-p/138910#M28543</guid>
      <dc:creator>pmdba</dc:creator>
      <dc:date>2014-09-26T00:38:27Z</dc:date>
    </item>
  </channel>
</rss>

