<?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 Move data to another index based on _time in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Move-data-to-another-index-based-on-time/m-p/139062#M23051</link>
    <description>&lt;P&gt;I would like to move data based on the event time to another index. I've tried something like the following...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main _time &amp;lt; whatever | collect index=old
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But, this changes all the src values to be the splunk indexer.&lt;/P&gt;

&lt;P&gt;I've also tried to move items to "frozen" based on time. However, that seems to move events based on the time that the data was indexed.&lt;/P&gt;

&lt;P&gt;Is there another way to do this?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2013 18:49:09 GMT</pubDate>
    <dc:creator>zafunt</dc:creator>
    <dc:date>2013-11-12T18:49:09Z</dc:date>
    <item>
      <title>Move data to another index based on _time</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Move-data-to-another-index-based-on-time/m-p/139062#M23051</link>
      <description>&lt;P&gt;I would like to move data based on the event time to another index. I've tried something like the following...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main _time &amp;lt; whatever | collect index=old
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But, this changes all the src values to be the splunk indexer.&lt;/P&gt;

&lt;P&gt;I've also tried to move items to "frozen" based on time. However, that seems to move events based on the time that the data was indexed.&lt;/P&gt;

&lt;P&gt;Is there another way to do this?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 18:49:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Move-data-to-another-index-based-on-time/m-p/139062#M23051</guid>
      <dc:creator>zafunt</dc:creator>
      <dc:date>2013-11-12T18:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Move data to another index based on _time</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Move-data-to-another-index-based-on-time/m-p/139063#M23052</link>
      <description>&lt;P&gt;move the buckets instead, it's easier to identify all the buckets containing your data.&lt;BR /&gt;
then copy/move then to the new index.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;use the &lt;CODE&gt;|dbinspect index=main | convert ctime(endEpoch)  AS start| convert ctime(startEpoch) AS end | table path state start end&lt;/CODE&gt;&lt;BR /&gt;
to get the list of your buckets, with their timerange.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;stop splunk&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;copy or move them to the new indexpath&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;if needed, use the &lt;CODE&gt;delete&lt;/CODE&gt; command to hide the events that you do not want &lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 12 Nov 2013 19:46:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Move-data-to-another-index-based-on-time/m-p/139063#M23052</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-11-12T19:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Move data to another index based on _time</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Move-data-to-another-index-based-on-time/m-p/139064#M23053</link>
      <description>&lt;P&gt;Thanks. This should work for me. I'll update with any additional steps that may be helpful to others.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2013 12:50:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Move-data-to-another-index-based-on-time/m-p/139064#M23053</guid>
      <dc:creator>zafunt</dc:creator>
      <dc:date>2013-11-13T12:50:32Z</dc:date>
    </item>
  </channel>
</rss>

