<?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: With a heavy forwarder, how do I redirect a data set to separate indexes with different indexes? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/With-a-heavy-forwarder-how-do-I-redirect-a-data-set-to-separate/m-p/415687#M73477</link>
    <description>&lt;P&gt;As an alternative to changing the index on the recipient HF/Indexer, you may try using sourcetype cloning. The caveat will be that the sourcetype will end up different on each cluster (although you could put additional config there to change it back).&lt;/P&gt;

&lt;P&gt;On the HF, &lt;BR /&gt;
&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;BR /&gt;
[original_sourcetype]&lt;BR /&gt;
TRANSFORMS-clone = clone_sourcetype&lt;/P&gt;

&lt;P&gt;[sourcetype2]&lt;BR /&gt;
TRANSFORMS-change_index = change_index&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;BR /&gt;
[clone_sourcetype]&lt;BR /&gt;
CLONE_SOURCETYPE = sourcetype2&lt;BR /&gt;
REGEX = .&lt;/P&gt;

&lt;P&gt;[change_index]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = web&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 21:40:59 GMT</pubDate>
    <dc:creator>sduff_splunk</dc:creator>
    <dc:date>2020-09-29T21:40:59Z</dc:date>
    <item>
      <title>With a heavy forwarder, how do I redirect a data set to separate indexes with different indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/With-a-heavy-forwarder-how-do-I-redirect-a-data-set-to-separate/m-p/415683#M73473</link>
      <description>&lt;P&gt;All, &lt;/P&gt;

&lt;P&gt;I have a data set that I need in indexclusterA as index=distil. HOW EVER I need that same data in indexclusterB as index=web. Data all flow through a Heavy forwarder. &lt;/P&gt;

&lt;P&gt;Any idea how I would do this?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 01:06:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/With-a-heavy-forwarder-how-do-I-redirect-a-data-set-to-separate/m-p/415683#M73473</guid>
      <dc:creator>daniel333</dc:creator>
      <dc:date>2018-10-12T01:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: With a heavy forwarder, how do I redirect a data set to separate indexes with different indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/With-a-heavy-forwarder-how-do-I-redirect-a-data-set-to-separate/m-p/415684#M73474</link>
      <description>&lt;P&gt;On the Heavy Forwarder, you would use multiple &lt;CODE&gt;[tcpout:&amp;lt;target_group&amp;gt;]&lt;/CODE&gt;, one for indexclusterA, and the other for indexclusterB. The Heavy Forwarder should also have an &lt;CODE&gt;inputs.conf&lt;/CODE&gt; file with the input's index set to distill.&lt;/P&gt;

&lt;P&gt;On the 2nd index cluster, you have an &lt;CODE&gt;inputs.conf&lt;/CODE&gt; with a Splunk TCP input monitor, &lt;CODE&gt;[splunktcp:9997]&lt;/CODE&gt;. Under this stanza, add the line, &lt;CODE&gt;queue = parsingQueue&lt;/CODE&gt;. This will ensure that props and transforms on the index cluster will apply. &lt;/P&gt;

&lt;P&gt;Then, in &lt;CODE&gt;props.conf&lt;/CODE&gt;, have the following stanza.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [whatever source/sourcetype/host you want to change]
 TRANSFORMS-changeindex = changeindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And &lt;CODE&gt;transforms.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [changeindex]
 REGEX = .
 DEST_KEY = _MetaData:Index
 FORMAT = web
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could also change the &lt;CODE&gt;splunktcp&lt;/CODE&gt; line to only match the IP address of the Heavy Forwarder, if you have multiple forwarders logging to the indexers.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 01:56:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/With-a-heavy-forwarder-how-do-I-redirect-a-data-set-to-separate/m-p/415684#M73474</guid>
      <dc:creator>sduff_splunk</dc:creator>
      <dc:date>2018-10-12T01:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: With a heavy forwarder, how do I redirect a data set to separate indexes with different indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/With-a-heavy-forwarder-how-do-I-redirect-a-data-set-to-separate/m-p/415685#M73475</link>
      <description>&lt;P&gt;No way to handle this at the heavy forwarder level? Enabling  "queue = parsingQueue" I believe reprocesses cooked data, the results would be I'd have to move over dozens of apps and reprocess the data over and this would be a huge load on my indexers? &lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 18:42:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/With-a-heavy-forwarder-how-do-I-redirect-a-data-set-to-separate/m-p/415685#M73475</guid>
      <dc:creator>daniel333</dc:creator>
      <dc:date>2018-10-12T18:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: With a heavy forwarder, how do I redirect a data set to separate indexes with different indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/With-a-heavy-forwarder-how-do-I-redirect-a-data-set-to-separate/m-p/415686#M73476</link>
      <description>&lt;P&gt;A very similar thread - &lt;A href="https://answers.splunk.com/answers/617946/can-the-universal-forwarder-send-the-same-data-to.html"&gt;Can the universal forwarder send the same data to different farms with different index names?&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 18:57:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/With-a-heavy-forwarder-how-do-I-redirect-a-data-set-to-separate/m-p/415686#M73476</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-10-12T18:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: With a heavy forwarder, how do I redirect a data set to separate indexes with different indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/With-a-heavy-forwarder-how-do-I-redirect-a-data-set-to-separate/m-p/415687#M73477</link>
      <description>&lt;P&gt;As an alternative to changing the index on the recipient HF/Indexer, you may try using sourcetype cloning. The caveat will be that the sourcetype will end up different on each cluster (although you could put additional config there to change it back).&lt;/P&gt;

&lt;P&gt;On the HF, &lt;BR /&gt;
&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;BR /&gt;
[original_sourcetype]&lt;BR /&gt;
TRANSFORMS-clone = clone_sourcetype&lt;/P&gt;

&lt;P&gt;[sourcetype2]&lt;BR /&gt;
TRANSFORMS-change_index = change_index&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;BR /&gt;
[clone_sourcetype]&lt;BR /&gt;
CLONE_SOURCETYPE = sourcetype2&lt;BR /&gt;
REGEX = .&lt;/P&gt;

&lt;P&gt;[change_index]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = web&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:40:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/With-a-heavy-forwarder-how-do-I-redirect-a-data-set-to-separate/m-p/415687#M73477</guid>
      <dc:creator>sduff_splunk</dc:creator>
      <dc:date>2020-09-29T21:40:59Z</dc:date>
    </item>
  </channel>
</rss>

