<?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: move some content/source from one index to another index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21930#M177383</link>
    <description>&lt;P&gt;You can use the collect command. Construct a search that returns the data you want to port, and pipe to collect.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=whatever host=whatever source=whatever whatever | collect index=foo&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;That will port the data into the foo index. However, the sourcetype will be changed to 'stash'.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/searchreference/collect"&gt;http://docs.splunk.com/Documentation/Splunk/latest/searchreference/collect&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2011 19:17:37 GMT</pubDate>
    <dc:creator>rgonzale6</dc:creator>
    <dc:date>2011-11-23T19:17:37Z</dc:date>
    <item>
      <title>move some content/source from one index to another index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21928#M177381</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Can we move only selected file content from one index to another index.&lt;BR /&gt;
I want to move only selected source/content not the ful index data, is it possible?&lt;/P&gt;

&lt;P&gt;Thanks~&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2011 17:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21928#M177381</guid>
      <dc:creator>sushildabare</dc:creator>
      <dc:date>2011-11-23T17:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: move some content/source from one index to another index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21929#M177382</link>
      <description>&lt;P&gt;You can't selectively move data from one index to another easily.  You can find the data you'd like to move, and export, you can export the events as raw and then import them into your new index. Once you do that, you can use &lt;CODE&gt;| delete&lt;/CODE&gt; to mask the events so further searches won't reveal them. However, that space won't be reclaimed within the index. &lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2011 18:31:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21929#M177382</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2011-11-23T18:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: move some content/source from one index to another index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21930#M177383</link>
      <description>&lt;P&gt;You can use the collect command. Construct a search that returns the data you want to port, and pipe to collect.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=whatever host=whatever source=whatever whatever | collect index=foo&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;That will port the data into the foo index. However, the sourcetype will be changed to 'stash'.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/searchreference/collect"&gt;http://docs.splunk.com/Documentation/Splunk/latest/searchreference/collect&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2011 19:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21930#M177383</guid>
      <dc:creator>rgonzale6</dc:creator>
      <dc:date>2011-11-23T19:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: move some content/source from one index to another index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21931#M177384</link>
      <description>&lt;P&gt;Thanks buddy...that little pointer helped me with another issue I was facing. Note that src="ipaddr" OR etc can be used as well if your culprit was a syslog with multiples in it....no doubt the manual would have told me that however long I spend in them! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 13:51:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21931#M177384</guid>
      <dc:creator>DaveSavage</dc:creator>
      <dc:date>2012-09-27T13:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: move some content/source from one index to another index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21932#M177385</link>
      <description>&lt;P&gt;Happy to help.  I should also add, you can do this as well...&lt;/P&gt;

&lt;P&gt;|collect index=foo sourcetype=foo&lt;/P&gt;

&lt;P&gt;...and that will force your sourcetype too.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2012 15:13:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21932#M177385</guid>
      <dc:creator>rgonzale6</dc:creator>
      <dc:date>2012-09-27T15:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: move some content/source from one index to another index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21933#M177386</link>
      <description>&lt;P&gt;I have run this collect command, and then searched in the index I collected the logs to.... but I do not find the results.  Is this still working in 5.0.2?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 17:22:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21933#M177386</guid>
      <dc:creator>casspugh</dc:creator>
      <dc:date>2013-02-18T17:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: move some content/source from one index to another index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21934#M177387</link>
      <description>&lt;P&gt;seems that the reporting server changes to the Splunk server instead of the server that generated the event...&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 16:46:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21934#M177387</guid>
      <dc:creator>mornawka</dc:creator>
      <dc:date>2016-01-26T16:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: move some content/source from one index to another index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21935#M177388</link>
      <description>&lt;P&gt;Note that changing the sourcetype will (as of 6.x, at least) incur additional licensing impact.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 23:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21935#M177388</guid>
      <dc:creator>davidatpinger</dc:creator>
      <dc:date>2016-11-30T23:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: move some content/source from one index to another index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21936#M177389</link>
      <description>&lt;P&gt;Will this move the Raw data from one index to another or just the indexed data?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 19:11:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21936#M177389</guid>
      <dc:creator>GSolasa</dc:creator>
      <dc:date>2017-10-20T19:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: move some content/source from one index to another index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21937#M177390</link>
      <description>&lt;P&gt;will it also move raw data ?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 20:43:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21937#M177390</guid>
      <dc:creator>GSolasa</dc:creator>
      <dc:date>2017-10-20T20:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: move some content/source from one index to another index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21938#M177391</link>
      <description>&lt;P&gt;No - It will copy the data from your source index to the new one specified by the collect command.&lt;BR /&gt;
It will not remove data from the original index.&lt;BR /&gt;
You can use (with great care) the &lt;CODE&gt;|delete&lt;/CODE&gt; command to remove the items from the source DB, but you should be aware that this only prevents the results being returned in search - the events themselves will remain on disk.  In many cases this is acceptable, but if your dealing with some sensitive data types, the only way to remove events once indexed is to expire/freeze your index and let Splunk delete the buckets&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 08:59:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/move-some-content-source-from-one-index-to-another-index/m-p/21938#M177391</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-12-04T08:59:09Z</dc:date>
    </item>
  </channel>
</rss>

