<?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: Splunk DB Connect: Is it possible to clear all rows in database and add all results (old and new) for every execution? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-it-possible-to-clear-all-rows-in-database/m-p/264536#M30590</link>
    <description>&lt;P&gt;Hi ankithreddy777,&lt;BR /&gt;
using DB Connect you can acquire records in two ways:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;all query results;&lt;/LI&gt;
&lt;LI&gt;only newest records.
you can choose the preferred Input Type in the creation of database input (see &lt;A href="http://docs.splunk.com/Documentation/DBX/2.4.0/DeployDBX/Createandmanagedatabaseinputs#Choose_and_preview_table"&gt;http://docs.splunk.com/Documentation/DBX/2.4.0/DeployDBX/Createandmanagedatabaseinputs#Choose_and_preview_table&lt;/A&gt;)
If you choose "batch input" you take all the times all the query's results, if you choose "Rising column" you have to choose a field, always growing, to use to record the check point (Splunk records in a configuration file the last value of the rising column from the executed query and uses it as starting point for the next one).
There is also a third choose  ("Advanced") similar to "Rising column".
Bye.
Giuseppe&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 31 Jan 2017 08:06:51 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-01-31T08:06:51Z</dc:date>
    <item>
      <title>Splunk DB Connect: Is it possible to clear all rows in database and add all results (old and new) for every execution?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-it-possible-to-clear-all-rows-in-database/m-p/264535#M30589</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have to send results to the database from Splunk using Splunk DB Connect. But in documentation it is given that for every execution only the updated results will added to database table.&lt;BR /&gt;
Is it possible to clear all rows in database and add all results (old and new) for every execution?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 19:21:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-it-possible-to-clear-all-rows-in-database/m-p/264535#M30589</guid>
      <dc:creator>ankithreddy777</dc:creator>
      <dc:date>2017-01-30T19:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect: Is it possible to clear all rows in database and add all results (old and new) for every execution?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-it-possible-to-clear-all-rows-in-database/m-p/264536#M30590</link>
      <description>&lt;P&gt;Hi ankithreddy777,&lt;BR /&gt;
using DB Connect you can acquire records in two ways:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;all query results;&lt;/LI&gt;
&lt;LI&gt;only newest records.
you can choose the preferred Input Type in the creation of database input (see &lt;A href="http://docs.splunk.com/Documentation/DBX/2.4.0/DeployDBX/Createandmanagedatabaseinputs#Choose_and_preview_table"&gt;http://docs.splunk.com/Documentation/DBX/2.4.0/DeployDBX/Createandmanagedatabaseinputs#Choose_and_preview_table&lt;/A&gt;)
If you choose "batch input" you take all the times all the query's results, if you choose "Rising column" you have to choose a field, always growing, to use to record the check point (Splunk records in a configuration file the last value of the rising column from the executed query and uses it as starting point for the next one).
There is also a third choose  ("Advanced") similar to "Rising column".
Bye.
Giuseppe&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 31 Jan 2017 08:06:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-it-possible-to-clear-all-rows-in-database/m-p/264536#M30590</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-01-31T08:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect: Is it possible to clear all rows in database and add all results (old and new) for every execution?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-it-possible-to-clear-all-rows-in-database/m-p/264537#M30591</link>
      <description>&lt;P&gt;Hi Cusello,&lt;BR /&gt;
How to send all results to the database for every execution. Instead of only new results using database. Can we delete results in database?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 12:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-it-possible-to-clear-all-rows-in-database/m-p/264537#M30591</guid>
      <dc:creator>ankithreddy777</dc:creator>
      <dc:date>2017-01-31T12:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect: Is it possible to clear all rows in database and add all results (old and new) for every execution?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-it-possible-to-clear-all-rows-in-database/m-p/264538#M30592</link>
      <description>&lt;P&gt;No the "Batch input" option permits to download all the results of a query, but it doesn't delete records from DB, it's possible but you have to grant deletion privileges to the user that you use to connect to your DB (it isn't a usual procedure!) and create another DB script to delete the downloaded records.&lt;/P&gt;

&lt;P&gt;Why you don't want to use the "Rising column" method? it's really more efficient!&lt;BR /&gt;
If the problem is that you have rotation of your DB (in this way your rising column will be reset at every file rotation), you can manage this situation in an easy way: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;add to your query an additional field  resulting by timestamp + growing code&lt;/LI&gt;
&lt;LI&gt;use this new field as rising column.
In this way your rising column will be always growing.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Bye.&lt;/P&gt;

&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 12:49:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-it-possible-to-clear-all-rows-in-database/m-p/264538#M30592</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-01-31T12:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect: Is it possible to clear all rows in database and add all results (old and new) for every execution?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-it-possible-to-clear-all-rows-in-database/m-p/264539#M30593</link>
      <description>&lt;P&gt;You are probably aware that you have posted this question twice, right?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/494339/delete-database-results-and-update-with-new-result.html#answer-507489"&gt;https://answers.splunk.com/answers/494339/delete-database-results-and-update-with-new-result.html#answer-507489&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2017 06:55:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-it-possible-to-clear-all-rows-in-database/m-p/264539#M30593</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-04T06:55:20Z</dc:date>
    </item>
  </channel>
</rss>

