<?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: Multiple Load Balanced Heavy Forwarders (Configuration with non-clustered Indexers) in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253419#M23962</link>
    <description>&lt;P&gt;From your above configuration, since both has host*, it will forward to the first indexer.&lt;/P&gt;

&lt;P&gt;You can have multiple instances of  DEST_KEY=_TCP_ROUTING at least as per the documentation in &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Forwarding/Routeandfilterdatad" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Forwarding/Routeandfilterdatad&lt;/A&gt; under the heading&lt;BR /&gt;
&lt;STRONG&gt;Filter and route event data to target groups&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;From your original question, lets take forwarder1,forwarder2 be the two forwarders which send data to indexer1 and indexer2 respectively.&lt;BR /&gt;
In this case, the following should work,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf
[host::forwarder1]
 TRANSFORMS-routing=indexer1

[host::forwarder2]
 TRANSFORMS-routing=indexer2

transforms.conf
[indexer1]
 REGEX=.
 DEST_KEY=_TCP_ROUTING
 FORMAT=indexer1_group

[indexer2]
 REGEX=.
 DEST_KEY=_TCP_ROUTING
 FORMAT=indexer2_group

 outputs.conf
[tcpout:indexer1_group]
 server=indexer1:9997

[tcpout:indexer2_group]
 server=indexer2:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have separate source or sourcetypes from each of these forwarders, then you can mention it in props instead of hostname&lt;BR /&gt;
Eg:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::&amp;lt;sourcename&amp;gt;]
 TRANSFORMS-routing=indexer1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hostname and sourcename can be replaced by a valid regex as well&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 08:02:23 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2020-09-29T08:02:23Z</dc:date>
    <item>
      <title>Multiple Load Balanced Heavy Forwarders (Configuration with non-clustered Indexers)</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253412#M23955</link>
      <description>&lt;P&gt;&lt;STRONG&gt;What we are trying to do?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Multiple Universal forwarders with different indexes forwarding data to a  load balanced address. This load balanced address has two pool members (Heavy Forwarders). These Heavy Forwarders receive and forward the data onto the indexers/3rd party systems. These indexers are not clustered to save on storage and only certain indexes are hard configured to specific indexers. I realize we could use a replication factor of one. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The question?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;How do the Heavy Forwarders know where to send indexes if specific indexes are only configure for specific indexers.?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Diagram&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Universal Forwarder with index=test1 ------&amp;gt; splunktest.com (pool members: heavyforwarder1 &amp;amp;&amp;amp; heavyforwarder2) &lt;BR /&gt;
Universal Forwarder with index=test2 ------&amp;gt;  splunktest.com (pool members: heavyforwarder1 &amp;amp;&amp;amp; heavyforwarder2) &lt;/P&gt;

&lt;P&gt;test1 is configured only on indexer1 &amp;amp;&amp;amp; test2 is configured only on indexer2&lt;/P&gt;

&lt;P&gt;What keeps the heavy forwarders from sending index=test1 data to indexer2?&lt;BR /&gt;
Do we just need to use indexer clustering after all?&lt;/P&gt;

&lt;P&gt;Thank You for your time&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 20:16:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253412#M23955</guid>
      <dc:creator>pattokt</dc:creator>
      <dc:date>2015-11-30T20:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Load Balanced Heavy Forwarders (Configuration with non-clustered Indexers)</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253413#M23956</link>
      <description>&lt;P&gt;You can control the data flow in heavy forwarder's outputs conf by using "Route and filter data" method. By using it, you will be able to re-redirect the incoming events to respective indexers. &lt;/P&gt;

&lt;P&gt;Details are available in &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Forwarding/Routeandfilterdatad"&gt;Route and filter data&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 14:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253413#M23956</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2015-12-02T14:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Load Balanced Heavy Forwarders (Configuration with non-clustered Indexers)</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253414#M23957</link>
      <description>&lt;P&gt;Somehow link is not visible. see here &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Forwarding/Routeandfilterdatad"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 14:51:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253414#M23957</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2015-12-02T14:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Load Balanced Heavy Forwarders (Configuration with non-clustered Indexers)</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253415#M23958</link>
      <description>&lt;P&gt;I have tried the settings below on the heavy forwarders with no luck. I want to blacklist the test index from going to indexer number one.  It will blacklist when I apply it at the global tcpout level, but I won't get data into indexer2 then. &lt;/P&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup = default-group&lt;/P&gt;

&lt;P&gt;[tcpout:default-group]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
server = indexer1.com:10000,indexer2.com:10000&lt;/P&gt;

&lt;P&gt;[tcpout-server://indexer1.com:10000]&lt;BR /&gt;
forwardedindex.0.whitelist =&lt;BR /&gt;
forwardedindex.1.blacklist =&lt;BR /&gt;
forwardedindex.2.whitelist =&lt;BR /&gt;
forwardedindex.0.blacklist = test&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 22:11:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253415#M23958</guid>
      <dc:creator>pattokt</dc:creator>
      <dc:date>2015-12-02T22:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Load Balanced Heavy Forwarders (Configuration with non-clustered Indexers)</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253416#M23959</link>
      <description>&lt;P&gt;Try the following based on the forwarder. You can refine this according to your requirement.&lt;BR /&gt;
props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::forwarder1]
TRANSFORMS-routing=indexer1

[host::forwarder2]
TRANSFORMS-routing=indexer2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[indexer1]
REGEX=.
DEST_KEY=_TCP_ROUTING
FORMAT=indexer1_group

[indexer2]
REGEX=.
DEST_KEY=_TCP_ROUTING
FORMAT=indexer2_group
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:indexer1_group]
server=indexer1:9997

[tcpout:indexer2_group]
server=indexer2:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;please test it in non-prod environment before changing it in production&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 02:07:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253416#M23959</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2015-12-03T02:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Load Balanced Heavy Forwarders (Configuration with non-clustered Indexers)</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253417#M23960</link>
      <description>&lt;P&gt;The below config seems to be blocking everything to the (indexer1) instead of just the specified host to indexer1. &lt;/P&gt;

&lt;P&gt;Configured below on heavy forwarder.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::hostname.com]
TRANSFORMS-routing=lside

[host::*]
TRANSFORMS-routing=oside
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[lside]
REGEX= .
DEST_KEY= queue
FORMAT= nullQueue

[oside]
REGEX= .
DEST_KEY= _TCP_ROUTING
FORMAT= oside1_group
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:lside1_group]
server=indexer1.com:10000

[tcpout:oside1_group]
server=indexer2.com:10000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Dec 2015 16:21:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253417#M23960</guid>
      <dc:creator>pattokt</dc:creator>
      <dc:date>2015-12-03T16:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Load Balanced Heavy Forwarders (Configuration with non-clustered Indexers)</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253418#M23961</link>
      <description>&lt;P&gt;Also, I have testing the below config multiple times. It will only route data to the first indexer named in outputs.conf. I don't think you can have multiple instances of DEST_KEY=_TCP_ROUTING.&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
    [host::*]&lt;BR /&gt;
    TRANSFORMS-routing=indexer1&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::*]
TRANSFORMS-routing=indexer2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
    [indexer2]&lt;BR /&gt;
    REGEX=.&lt;BR /&gt;
    DEST_KEY=_TCP_ROUTING&lt;BR /&gt;
    FORMAT=indexer2_group&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[indexer1]
REGEX=.
DEST_KEY=_TCP_ROUTING
FORMAT=indexer1_group
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:indexer2_group]
server=lindexprod1.com:10000

[tcpout:indexer1_group]
server=oindexprod1.com:10000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253418#M23961</guid>
      <dc:creator>pattokt</dc:creator>
      <dc:date>2020-09-29T08:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Load Balanced Heavy Forwarders (Configuration with non-clustered Indexers)</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253419#M23962</link>
      <description>&lt;P&gt;From your above configuration, since both has host*, it will forward to the first indexer.&lt;/P&gt;

&lt;P&gt;You can have multiple instances of  DEST_KEY=_TCP_ROUTING at least as per the documentation in &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Forwarding/Routeandfilterdatad" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Forwarding/Routeandfilterdatad&lt;/A&gt; under the heading&lt;BR /&gt;
&lt;STRONG&gt;Filter and route event data to target groups&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;From your original question, lets take forwarder1,forwarder2 be the two forwarders which send data to indexer1 and indexer2 respectively.&lt;BR /&gt;
In this case, the following should work,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf
[host::forwarder1]
 TRANSFORMS-routing=indexer1

[host::forwarder2]
 TRANSFORMS-routing=indexer2

transforms.conf
[indexer1]
 REGEX=.
 DEST_KEY=_TCP_ROUTING
 FORMAT=indexer1_group

[indexer2]
 REGEX=.
 DEST_KEY=_TCP_ROUTING
 FORMAT=indexer2_group

 outputs.conf
[tcpout:indexer1_group]
 server=indexer1:9997

[tcpout:indexer2_group]
 server=indexer2:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have separate source or sourcetypes from each of these forwarders, then you can mention it in props instead of hostname&lt;BR /&gt;
Eg:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::&amp;lt;sourcename&amp;gt;]
 TRANSFORMS-routing=indexer1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hostname and sourcename can be replaced by a valid regex as well&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:02:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Multiple-Load-Balanced-Heavy-Forwarders-Configuration-with-non/m-p/253419#M23962</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-09-29T08:02:23Z</dc:date>
    </item>
  </channel>
</rss>

