<?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: routing and transforming to two different indexers in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Routing-and-transforming-to-two-different-indexers/m-p/563850#M196412</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;On your HF, go to props.conf or create one in the directory $SPLUNK_HOME/etc/system/local or $SPLUNK_HOME/etc/apps/&amp;lt;app_name&amp;gt;/local and put the following:&lt;/P&gt;&lt;PRE&gt;[&lt;SPAN&gt;custom:access_combined&lt;/SPAN&gt;]
TRANSFORMS-routing=devRouting&lt;BR /&gt;TRANSFORMS-routing1=opsRouting&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;In the same path, edit or create transforms.conf and put the following:&lt;/P&gt;&lt;PRE&gt;[devRouting]
REGEX= .
DEST_KEY=_TCP_ROUTING
FORMAT=devGroup

[opsRouting]
REGEX= &amp;lt;put the regex to select &amp;amp; identify the data that you want to send to the ops indexer&amp;gt;
DEST_KEY=_TCP_ROUTING
FORMAT=opsGroup&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in outputs.conf, append the following changes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[tcpout:devGroup]
server=&amp;lt;ip of dev indexer&amp;gt;:&amp;lt;port number&amp;gt;

[tcpout:opsGroup]
server=&amp;lt;ip of ops indexer&amp;gt;:&amp;lt;port number&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Restart splunkd and check the results. If the changes aren't reflecting, please check the following:&lt;/P&gt;&lt;P&gt;1. Your regex is correct.&lt;/P&gt;&lt;P&gt;2. Entries about the IP and port are correct&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. You or the team has the rights to access data.&lt;/P&gt;&lt;P&gt;4. Run btool and see what configurations are loaded for the app and sourcetype, for which we made the changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps. Let me know if it works.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt;****If it helped, please upvote and accept it as a solution. It helps other Splunkers to find the solutions easily****&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Aug 2021 19:53:36 GMT</pubDate>
    <dc:creator>shivanshu1593</dc:creator>
    <dc:date>2021-08-18T19:53:36Z</dc:date>
    <item>
      <title>Routing and transforming to two different indexers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Routing-and-transforming-to-two-different-indexers/m-p/563840#M196411</link>
      <description>&lt;P&gt;Today I have a custom sourcetype =&amp;nbsp;custom:access_combined this is routed in its entirety at the heavy forwarder to two different index clusters.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ldnail_at_TI_0-1629313184782.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15620i0DF8840956B74077/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ldnail_at_TI_0-1629313184782.png" alt="ldnail_at_TI_0-1629313184782.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Indexer1 is the dev team, indexer2 is ops.&lt;BR /&gt;&lt;BR /&gt;So the problem I'm running into is that I'd like to:&lt;BR /&gt;- route a full copy to indexer1&lt;BR /&gt;- for indexer2, run through transforms and drop a bunch of noise (like 75%) ops doesn't need to nullqueue&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ldnail_at_TI_1-1629313536940.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15621iDE1611931D20FDB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ldnail_at_TI_1-1629313536940.png" alt="ldnail_at_TI_1-1629313536940.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any ideas on how to approach this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 17:36:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Routing-and-transforming-to-two-different-indexers/m-p/563840#M196411</guid>
      <dc:creator>ldnail_at_TI</dc:creator>
      <dc:date>2023-07-20T17:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: routing and transforming to two different indexers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Routing-and-transforming-to-two-different-indexers/m-p/563850#M196412</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;On your HF, go to props.conf or create one in the directory $SPLUNK_HOME/etc/system/local or $SPLUNK_HOME/etc/apps/&amp;lt;app_name&amp;gt;/local and put the following:&lt;/P&gt;&lt;PRE&gt;[&lt;SPAN&gt;custom:access_combined&lt;/SPAN&gt;]
TRANSFORMS-routing=devRouting&lt;BR /&gt;TRANSFORMS-routing1=opsRouting&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;In the same path, edit or create transforms.conf and put the following:&lt;/P&gt;&lt;PRE&gt;[devRouting]
REGEX= .
DEST_KEY=_TCP_ROUTING
FORMAT=devGroup

[opsRouting]
REGEX= &amp;lt;put the regex to select &amp;amp; identify the data that you want to send to the ops indexer&amp;gt;
DEST_KEY=_TCP_ROUTING
FORMAT=opsGroup&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in outputs.conf, append the following changes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[tcpout:devGroup]
server=&amp;lt;ip of dev indexer&amp;gt;:&amp;lt;port number&amp;gt;

[tcpout:opsGroup]
server=&amp;lt;ip of ops indexer&amp;gt;:&amp;lt;port number&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Restart splunkd and check the results. If the changes aren't reflecting, please check the following:&lt;/P&gt;&lt;P&gt;1. Your regex is correct.&lt;/P&gt;&lt;P&gt;2. Entries about the IP and port are correct&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. You or the team has the rights to access data.&lt;/P&gt;&lt;P&gt;4. Run btool and see what configurations are loaded for the app and sourcetype, for which we made the changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps. Let me know if it works.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt;****If it helped, please upvote and accept it as a solution. It helps other Splunkers to find the solutions easily****&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 19:53:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Routing-and-transforming-to-two-different-indexers/m-p/563850#M196412</guid>
      <dc:creator>shivanshu1593</dc:creator>
      <dc:date>2021-08-18T19:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: routing and transforming to two different indexers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Routing-and-transforming-to-two-different-indexers/m-p/563865#M196414</link>
      <description>&lt;P&gt;I didn't see that in the forest of trees... thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 21:24:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Routing-and-transforming-to-two-different-indexers/m-p/563865#M196414</guid>
      <dc:creator>ldnail_at_TI</dc:creator>
      <dc:date>2021-08-18T21:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: routing and transforming to two different indexers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Routing-and-transforming-to-two-different-indexers/m-p/651332#M225180</link>
      <description>&lt;P&gt;in the same situation, how can I change de index for each remote indexer?&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp; &lt;STRONG&gt;ops_index&lt;/STRONG&gt; for &lt;STRONG&gt;ops&lt;/STRONG&gt; and &lt;STRONG&gt;dev_index&lt;/STRONG&gt; for &lt;STRONG&gt;dev&lt;/STRONG&gt;, as follow:&lt;/P&gt;&lt;P&gt;props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[custom:access_combined]
TRANSFORMS-routing=devRouting,devIndex
TRANSFORMS-routing1=opsRouting,opsIndex&lt;/LI-CODE&gt;&lt;P&gt;transforms:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[devRouting]
REGEX= .
DEST_KEY=_TCP_ROUTING
FORMAT=devGroup

[opsRouting]
REGEX= &amp;lt;put the regex to select &amp;amp; identify the data that you want to send to the ops indexer&amp;gt;
DEST_KEY=_TCP_ROUTING
FORMAT=opsGroup

[devIndex]
REGEX=.
DEST_KEY=_MetaData:Index
FORMAT=dev_index

[opsIndex]
REGEX=.
DEST_KEY=_MetaData:Index
FORMAT=ops_index
&lt;/LI-CODE&gt;&lt;P&gt;is right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 15:44:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Routing-and-transforming-to-two-different-indexers/m-p/651332#M225180</guid>
      <dc:creator>iguardia</dc:creator>
      <dc:date>2023-07-20T15:44:51Z</dc:date>
    </item>
  </channel>
</rss>

