<?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 Index a specific time range with DB Connect in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Index-a-specific-time-range-with-DB-Connect/m-p/168180#M98201</link>
    <description>&lt;P&gt;I want to import only the last X months/days/whatever of data from my database via DB Connect. Is there a better procedure than the following?&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Create a temporary index (restart Splunk, etc.)&lt;/LI&gt;
&lt;LI&gt;Create the DB input to send to the temp index and set tail.follow.only=true&lt;/LI&gt;
&lt;LI&gt;Wait for Splunk to create the state.xml file&lt;/LI&gt;
&lt;LI&gt;Stop Splunk&lt;/LI&gt;
&lt;LI&gt;Change the DB connection's state.xml and set the value for the rising column to the start date I want&lt;/LI&gt;
&lt;LI&gt;Change the inputs.conf to use the "permanent" index and remove the tail.follow.only line&lt;/LI&gt;
&lt;LI&gt;Start Splunk&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Is it possible to create the $SPLUNK_HOME/var/lib/splunk/persistentstorage/dbx/HASH/state.xml and manifest.properties manually? What hash function does Splunk use and what does it hash? The input name or something else?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2013 16:23:41 GMT</pubDate>
    <dc:creator>Yorokobi</dc:creator>
    <dc:date>2013-12-05T16:23:41Z</dc:date>
    <item>
      <title>Index a specific time range with DB Connect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-a-specific-time-range-with-DB-Connect/m-p/168180#M98201</link>
      <description>&lt;P&gt;I want to import only the last X months/days/whatever of data from my database via DB Connect. Is there a better procedure than the following?&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Create a temporary index (restart Splunk, etc.)&lt;/LI&gt;
&lt;LI&gt;Create the DB input to send to the temp index and set tail.follow.only=true&lt;/LI&gt;
&lt;LI&gt;Wait for Splunk to create the state.xml file&lt;/LI&gt;
&lt;LI&gt;Stop Splunk&lt;/LI&gt;
&lt;LI&gt;Change the DB connection's state.xml and set the value for the rising column to the start date I want&lt;/LI&gt;
&lt;LI&gt;Change the inputs.conf to use the "permanent" index and remove the tail.follow.only line&lt;/LI&gt;
&lt;LI&gt;Start Splunk&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Is it possible to create the $SPLUNK_HOME/var/lib/splunk/persistentstorage/dbx/HASH/state.xml and manifest.properties manually? What hash function does Splunk use and what does it hash? The input name or something else?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 16:23:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-a-specific-time-range-with-DB-Connect/m-p/168180#M98201</guid>
      <dc:creator>Yorokobi</dc:creator>
      <dc:date>2013-12-05T16:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Index a specific time range with DB Connect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-a-specific-time-range-with-DB-Connect/m-p/168181#M98202</link>
      <description>&lt;P&gt;I add the following outside the brackets: where datefield &amp;gt; "12/1/2010 00:00:00"  {AND $rising_column$ &amp;gt; ?}&lt;/P&gt;

&lt;P&gt;Then you can set the retention on the index.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 16:55:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-a-specific-time-range-with-DB-Connect/m-p/168181#M98202</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2013-12-05T16:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Index a specific time range with DB Connect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-a-specific-time-range-with-DB-Connect/m-p/168182#M98203</link>
      <description>&lt;P&gt;It looks like the suggestions do not work "as-is" for this particular Oracle table but they are far better than what I came up with myself and got me started in a much better direction. With the help of a DBA, we settled on using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SELECT ... WHERE LOG_TIMESTAMP &amp;gt; TO_DATE('2013/07/30 01:00:00 PM', 'YYYY/MM/DD HH:MI:SS PM') {{AND $rising_column$ &amp;gt; ?}}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Dec 2013 19:45:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-a-specific-time-range-with-DB-Connect/m-p/168182#M98203</guid>
      <dc:creator>Yorokobi</dc:creator>
      <dc:date>2013-12-05T19:45:24Z</dc:date>
    </item>
  </channel>
</rss>

