<?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: How can i redirect data from an index to a new one in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-i-redirect-data-from-an-index-to-a-new-one/m-p/417190#M73645</link>
    <description>&lt;P&gt;Hi baroudiem,&lt;BR /&gt;
if you want to send events that contain a string, you can override the index value depending on a regex On your indexer or heavy forwarder:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# etc/system/local/transforms.conf 

     [overrideindex]
     DEST_KEY =_MetaData:Index
     REGEX = .
     FORMAT = my_new_index

  #etc/system/local/props.conf 

     [mysourcetype]
     TRANSFORMS-index = overrideindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If instead you want to duplicate in another index a subset of your fields (not all the events), it isn't a good idea to index twice because you have a double license consuption , the best thing is to schedule a search that extract the fields you want and then collect them in one of the following ways:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;if they aren't so much,  in a lookup using the outputlookup command;&lt;/LI&gt;
&lt;LI&gt;if they are many, in a summary index using the collect command.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jan 2019 13:49:43 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2019-01-23T13:49:43Z</dc:date>
    <item>
      <title>How can i redirect data from an index to a new one</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-i-redirect-data-from-an-index-to-a-new-one/m-p/417188#M73643</link>
      <description>&lt;P&gt;Hello, &lt;BR /&gt;
I would like to know how can i redirect data from a general index  to a new one ? &lt;/P&gt;

&lt;P&gt;Example :&lt;BR /&gt;
General index : hostname / ip / port&lt;BR /&gt;&lt;BR /&gt;
New index : only port&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 13:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-i-redirect-data-from-an-index-to-a-new-one/m-p/417188#M73643</guid>
      <dc:creator>baroudiem</dc:creator>
      <dc:date>2019-01-22T13:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can i redirect data from an index to a new one</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-i-redirect-data-from-an-index-to-a-new-one/m-p/417189#M73644</link>
      <description>&lt;P&gt;As in "I would like to duplicate a subset of selected events data to another index on top of the current one"?&lt;/P&gt;

&lt;P&gt;I suggest you please clarify your question.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 15:18:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-i-redirect-data-from-an-index-to-a-new-one/m-p/417189#M73644</guid>
      <dc:creator>ccl0utier</dc:creator>
      <dc:date>2019-01-22T15:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can i redirect data from an index to a new one</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-i-redirect-data-from-an-index-to-a-new-one/m-p/417190#M73645</link>
      <description>&lt;P&gt;Hi baroudiem,&lt;BR /&gt;
if you want to send events that contain a string, you can override the index value depending on a regex On your indexer or heavy forwarder:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# etc/system/local/transforms.conf 

     [overrideindex]
     DEST_KEY =_MetaData:Index
     REGEX = .
     FORMAT = my_new_index

  #etc/system/local/props.conf 

     [mysourcetype]
     TRANSFORMS-index = overrideindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If instead you want to duplicate in another index a subset of your fields (not all the events), it isn't a good idea to index twice because you have a double license consuption , the best thing is to schedule a search that extract the fields you want and then collect them in one of the following ways:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;if they aren't so much,  in a lookup using the outputlookup command;&lt;/LI&gt;
&lt;LI&gt;if they are many, in a summary index using the collect command.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 13:49:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-i-redirect-data-from-an-index-to-a-new-one/m-p/417190#M73645</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-01-23T13:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can i redirect data from an index to a new one</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-i-redirect-data-from-an-index-to-a-new-one/m-p/417191#M73646</link>
      <description>&lt;P&gt;Hi baroudiem,&lt;BR /&gt;
if you're satisfied by this answer, please accept and/or upvote it.&lt;/P&gt;

&lt;P&gt;Bye, see next time.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 12:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-i-redirect-data-from-an-index-to-a-new-one/m-p/417191#M73646</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-07-31T12:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can i redirect data from an index to a new one</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-i-redirect-data-from-an-index-to-a-new-one/m-p/652155#M110742</link>
      <description>&lt;P&gt;Hi, this seems to be based on&amp;nbsp; [mysourcetype].&lt;/P&gt;&lt;P&gt;So, if an index gets dozens of sourcetypes treated in the HF, I will need to overrride each one of them individually.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to redirect for a short period of time targeting nullQueue for the remaining of the day. All this is detected via alerts throttled upon thresholds crossing.&lt;/P&gt;&lt;P&gt;Once the theshold crossed, I need a "kill switch" that would flush and data into an index based on an allowed ingestion threshold (plus 5%). I thought of overriding from MyIndex to nullQueue using props/transforms files but I need it to be simply and efficient.&lt;/P&gt;&lt;P&gt;This needs to take precedence on all MyIndex related props/transforms that would still exist, but would simply be left aside.&lt;/P&gt;&lt;P&gt;I would deliver "on the fly" an app that would contain props/transforms (all data targeting MyIndex redirect it to nullQueue) and restart my splunk HF service. at midnight, i would simple delete to&amp;nbsp;"on the fly" an app&amp;nbsp;and restart my splunk HF, falling back to the previously&amp;nbsp;left aside exsiting MyIndex related props/transforms.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 20:50:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-i-redirect-data-from-an-index-to-a-new-one/m-p/652155#M110742</guid>
      <dc:creator>FredericHebert</dc:creator>
      <dc:date>2023-07-26T20:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can i redirect data from an index to a new one</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-i-redirect-data-from-an-index-to-a-new-one/m-p/652165#M110743</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240283"&gt;@FredericHebert&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;please open a new question even if on the same topic of this question, because in this way, you'll have more attention from more people and the a quicker an maybe better answer.&lt;/P&gt;&lt;P&gt;Anyway, I usually use sourcetype in props.conf , but you can also use host or source but with a little different format:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[host::&amp;lt;your_host&amp;gt;]

or 

[source::&amp;lt;your_source&amp;gt;]&lt;/LI-CODE&gt;&lt;P&gt;For my knowledhe it isn't possible to define a validity period for a conf file: you should manually (or using a scheduled shell script) modify a conf file and restart the Heavy Forwarder, in my opinion isn't an efficient solution!&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 03:25:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-i-redirect-data-from-an-index-to-a-new-one/m-p/652165#M110743</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-27T03:25:31Z</dc:date>
    </item>
  </channel>
</rss>

