<?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: Can you send different logs to different Indexers from the same forwarder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-send-different-logs-to-different-Indexers-from-the-same/m-p/159749#M32396</link>
    <description>&lt;P&gt;Hi zbumpers,&lt;/P&gt;

&lt;P&gt;From my experience, it is possible to achieve this. You just need to set the proper indexer destination in outputs.conf of the forwarder. Create tcpout groups and then specify the groups to the proper monitoring stanza in inputs.conf. For example, something like this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Your indexers&lt;/STRONG&gt;: &lt;STRONG&gt;192.168.56.101:8089&lt;/STRONG&gt; and &lt;STRONG&gt;192.168.56.102:8089&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;In your forwarder:&lt;BR /&gt;
&lt;STRONG&gt;outputs.conf:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:IndexerA]
server=192.168.56.101:8089
....
....

[tcpout:IndexerB]
server=192.168.56.102:8089
....
....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///path/to/log/A/logA.log]
# Add attributes to your monitor like sourcetype, index, etc
....
....
# In the end, specify to which indexer this log should be sent using _TCP_ROUTING = &amp;lt;group name&amp;gt;
_TCP_ROUTING = IndexerA

# Do the same for log B
[monitor:///path/to/log/B/logB.log]
....
....
_TCP_ROUTING = IndexerB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restart the forwarder and see the result. Hope this helps.&lt;/P&gt;

&lt;P&gt;References:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/admin/inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/admin/inputsconf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/admin/Outputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/admin/Outputsconf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Forwarding/Configureforwarderswithoutputs.confd"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/Forwarding/Configureforwarderswithoutputs.confd&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Feb 2015 16:32:17 GMT</pubDate>
    <dc:creator>vincenteous</dc:creator>
    <dc:date>2015-02-25T16:32:17Z</dc:date>
    <item>
      <title>Can you send different logs to different Indexers from the same forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-send-different-logs-to-different-Indexers-from-the-same/m-p/159748#M32395</link>
      <description>&lt;P&gt;I would like to be able to send Log A to Indexer A and Log B to Indexer B from one forwarder. &lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2015 16:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-send-different-logs-to-different-Indexers-from-the-same/m-p/159748#M32395</guid>
      <dc:creator>zbumpers</dc:creator>
      <dc:date>2015-02-25T16:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can you send different logs to different Indexers from the same forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-send-different-logs-to-different-Indexers-from-the-same/m-p/159749#M32396</link>
      <description>&lt;P&gt;Hi zbumpers,&lt;/P&gt;

&lt;P&gt;From my experience, it is possible to achieve this. You just need to set the proper indexer destination in outputs.conf of the forwarder. Create tcpout groups and then specify the groups to the proper monitoring stanza in inputs.conf. For example, something like this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Your indexers&lt;/STRONG&gt;: &lt;STRONG&gt;192.168.56.101:8089&lt;/STRONG&gt; and &lt;STRONG&gt;192.168.56.102:8089&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;In your forwarder:&lt;BR /&gt;
&lt;STRONG&gt;outputs.conf:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:IndexerA]
server=192.168.56.101:8089
....
....

[tcpout:IndexerB]
server=192.168.56.102:8089
....
....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///path/to/log/A/logA.log]
# Add attributes to your monitor like sourcetype, index, etc
....
....
# In the end, specify to which indexer this log should be sent using _TCP_ROUTING = &amp;lt;group name&amp;gt;
_TCP_ROUTING = IndexerA

# Do the same for log B
[monitor:///path/to/log/B/logB.log]
....
....
_TCP_ROUTING = IndexerB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restart the forwarder and see the result. Hope this helps.&lt;/P&gt;

&lt;P&gt;References:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/admin/inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/admin/inputsconf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/admin/Outputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/admin/Outputsconf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Forwarding/Configureforwarderswithoutputs.confd"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/Forwarding/Configureforwarderswithoutputs.confd&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2015 16:32:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-send-different-logs-to-different-Indexers-from-the-same/m-p/159749#M32396</guid>
      <dc:creator>vincenteous</dc:creator>
      <dc:date>2015-02-25T16:32:17Z</dc:date>
    </item>
  </channel>
</rss>

