<?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 How to move partial data from index to another index? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458960#M79273</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I need some help.&lt;/P&gt;
&lt;P&gt;I recently was wondering whether or not i could export some data from some index and import that data to a new index which is live, as in getting data in.&lt;/P&gt;
&lt;P&gt;How can i do that?&lt;/P&gt;
&lt;P&gt;Any step by step tutorial of some kind somewhere?&lt;/P&gt;
&lt;P&gt;Thx.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 14:35:23 GMT</pubDate>
    <dc:creator>bogdan_nicolesc</dc:creator>
    <dc:date>2022-09-06T14:35:23Z</dc:date>
    <item>
      <title>How to move partial data from index to another index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458960#M79273</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I need some help.&lt;/P&gt;
&lt;P&gt;I recently was wondering whether or not i could export some data from some index and import that data to a new index which is live, as in getting data in.&lt;/P&gt;
&lt;P&gt;How can i do that?&lt;/P&gt;
&lt;P&gt;Any step by step tutorial of some kind somewhere?&lt;/P&gt;
&lt;P&gt;Thx.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 14:35:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458960#M79273</guid>
      <dc:creator>bogdan_nicolesc</dc:creator>
      <dc:date>2022-09-06T14:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Move partial data from index to another index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458961#M79274</link>
      <description>&lt;P&gt;Maybe I'm missing something, but why not use the &lt;CODE&gt;collect&lt;/CODE&gt; command ?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 15:57:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458961#M79274</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-11-02T15:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Move partial data from index to another index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458962#M79275</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I don't know what is that ... (?!) Any step by step tutorial using that?&lt;/P&gt;

&lt;P&gt;Also, the data i want to move is ALREADY indexed in one old index with a bunch of other old data. Is a universal index and now i want to export specific data to a new index.&lt;/P&gt;

&lt;P&gt;(Make any sense?!)&lt;/P&gt;

&lt;P&gt;I tried to export that data by looking for source type using raw, json, xml, csv, but i think i'm doing something wrong as i cannot find exported data in my searches.&lt;/P&gt;

&lt;P&gt;Any help/idea?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 08:42:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458962#M79275</guid>
      <dc:creator>bogdan_nicolesc</dc:creator>
      <dc:date>2018-11-05T08:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Move partial data from index to another index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458963#M79276</link>
      <description>&lt;P&gt;If you are trying to move data in the same Splunk Environment between one index and another, you can just do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=A | collect index=B
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;Tiago Matos&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 08:58:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458963#M79276</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-11-05T08:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Move partial data from index to another index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458964#M79277</link>
      <description>&lt;P&gt;Hi tiagofbmm,&lt;/P&gt;

&lt;P&gt;I don't want to move the same data (if this command is doing what i think is doing) but i want to move a sourcetype from one index (which is on old version of splunk) to a new index from a new version of splunk.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 09:06:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458964#M79277</guid>
      <dc:creator>bogdan_nicolesc</dc:creator>
      <dc:date>2018-11-05T09:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Move partial data from index to another index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458965#M79278</link>
      <description>&lt;P&gt;A sourcetype is not data. A sourcetype is metadata that tells Splunk how it processes and shows data to you. &lt;/P&gt;

&lt;P&gt;For instance, if you want to move the sourcetype Snare:Security, then install the Splunk_TA_Windows in your new environment and you're done.&lt;/P&gt;

&lt;P&gt;If instead you want to move one index from an old Splunk to a new Splunk, then go to the location where your index is, $SPLUNK_HOME/var/lib/splunk/, and copy it to your new Splunk. After this, you also need to tell your new Splunk that this index exists, for which you need to create a stanza in indexes.conf on your new index.&lt;/P&gt;

&lt;P&gt;[indexname]&lt;BR /&gt;
homePath   = $SPLUNK_DB/indexname/db&lt;BR /&gt;
coldPath   = $SPLUNK_DB/indexname/colddb&lt;BR /&gt;
thawedPath = $SPLUNK_DB/indexname/thaweddb&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:53:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458965#M79278</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2020-09-29T21:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Move partial data from index to another index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458966#M79279</link>
      <description>&lt;P&gt;I am already past by that, now the real 1mil$ question is if there is some sort of option/solution to tell splunk to export just this: &lt;BR /&gt;
==&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; source="WinEventLog:Security"&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;===&lt;/P&gt;

&lt;P&gt;From this: index=main&lt;/P&gt;

&lt;P&gt;As i was saying above and earlier, i can export in csv, json, xml, or even raw events, but for some reason, i don't know why, is exporting data without &amp;gt;&amp;gt;&amp;gt;FIELDS&amp;lt;&amp;lt;&amp;lt; so i cannot use that data in a previously built dashboard.&lt;/P&gt;

&lt;P&gt;So ... back to my question (as we dived more into my question), Is there, any kind/sort of SOP so i can use to export and then import data correctly into a new index?&lt;/P&gt;

&lt;P&gt;It is doable?!&lt;/P&gt;

&lt;P&gt;Is even possible to do this or i'm dreaming of green horses on walls?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 10:47:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458966#M79279</guid>
      <dc:creator>bogdan_nicolesc</dc:creator>
      <dc:date>2018-11-05T10:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Move partial data from index to another index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458967#M79280</link>
      <description>&lt;P&gt;When you try to move data into another index, you can specify the sourcetype that data will have in the other index.&lt;/P&gt;

&lt;P&gt;Collect moves raw data from one index to another. If you want the fields that you may have EXTRACTED, CALCULATED, FIELDALIAS, whatever else, then these are associated to a specific sourcetype. &lt;/P&gt;

&lt;P&gt;When issuing the collect command, specify sourcetype=.&lt;/P&gt;

&lt;P&gt;You can also specify the source too:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.2/SearchReference/Collect"&gt;https://docs.splunk.com/Documentation/Splunk/7.1.2/SearchReference/Collect&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 11:29:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458967#M79280</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-11-05T11:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Move partial data from index to another index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458968#M79281</link>
      <description>&lt;P&gt;I don't want to be rude or something, but i think i need some translation here as i don't understand a bit from what is in that documentation. I'm fairly new to splunk.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 11:35:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458968#M79281</guid>
      <dc:creator>bogdan_nicolesc</dc:creator>
      <dc:date>2018-11-05T11:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Move partial data from index to another index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458969#M79282</link>
      <description>&lt;P&gt;Imagine you want to copy source A from index X to index Y with the same source. &lt;/P&gt;

&lt;P&gt;Execute this: index=X source=A | collect index=Y source=A sourcetype=&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 12:00:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458969#M79282</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-11-05T12:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Move partial data from index to another index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458970#M79283</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;

&lt;P&gt;This was what i was asking for (tutorial/explanation).&lt;/P&gt;

&lt;P&gt;And sourcetype= i believe that you type it by mistake?!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 12:39:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458970#M79283</guid>
      <dc:creator>bogdan_nicolesc</dc:creator>
      <dc:date>2018-11-05T12:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Move partial data from index to another index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458971#M79284</link>
      <description>&lt;P&gt;Both sourcetype and source can be set optionally&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 13:03:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458971#M79284</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-11-05T13:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Move partial data from index to another index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458972#M79285</link>
      <description>&lt;P&gt;Worked. Thank you for your time.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 14:17:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458972#M79285</guid>
      <dc:creator>bogdan_nicolesc</dc:creator>
      <dc:date>2018-11-05T14:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Move partial data from index to another index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458973#M79286</link>
      <description>&lt;P&gt;index=X source=A | collect index=Y source=A (optionally sourcetype=)&lt;/P&gt;

&lt;P&gt;From:&lt;BR /&gt;
index=X source=A&lt;/P&gt;

&lt;P&gt;To:&lt;BR /&gt;
collect index=Y source=A&lt;/P&gt;

&lt;P&gt;Details:&lt;BR /&gt;
In order to copy one source and/or sourctype, from one old index (even if it's on old version of splunk) you need to type in splunk search:&lt;/P&gt;

&lt;P&gt;index=X source=A | collect index=Y source=A&lt;/P&gt;

&lt;P&gt;Where index=X source=A indicates the old index&lt;/P&gt;

&lt;P&gt;And collect index=Y source=A is the new index.&lt;/P&gt;

&lt;P&gt;In order to work, you must have pipe |.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 14:18:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458973#M79286</guid>
      <dc:creator>bogdan_nicolesc</dc:creator>
      <dc:date>2018-11-05T14:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Move partial data from index to another index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458974#M79287</link>
      <description>&lt;P&gt;Would you please accept my answer and upvote the help comments I took my time to do?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 14:25:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/458974#M79287</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-11-05T14:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Move partial data from index to another index.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/612055#M105944</link>
      <description>&lt;P&gt;We have a ticket index i.e index=incident the status of the ticket is Assigned but I need to write the same data back into the incident index with new status = Orphaned&lt;/P&gt;&lt;P&gt;Also need to changed the _time&lt;/P&gt;&lt;P&gt;index=incident Incident_Number="XXXXXX" ticketStatus=Assigned&lt;BR /&gt;| rex mode=sed "s/Status=\"Assigned\"/Status=\"Orphaned\"/"&lt;BR /&gt;| rex mode=sed "s/ticketStatus=\"Assigned\"/ticketStatus=\"Orphaned\"/"&lt;BR /&gt;| collect index=incident&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 08:52:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-partial-data-from-index-to-another-index/m-p/612055#M105944</guid>
      <dc:creator>911</dc:creator>
      <dc:date>2022-09-06T08:52:11Z</dc:date>
    </item>
  </channel>
</rss>

