<?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: universal forwarder with more than one outputs.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-with-more-than-one-outputs-conf/m-p/81006#M16707</link>
    <description>&lt;P&gt;There's rarely a point in doing this. You can just send them all to the same port. The Splunk forwarding protocol includes identification of the source host (and the source file, the destination index, and other things) so there's usually not any need or advantage to using more than one port.&lt;/P&gt;

&lt;P&gt;But if you really did need this for some reason (e.g., you're running multiple instances of Splunk on the host on different ports, or simply different hosts), you'd simply add a &lt;CODE&gt;_TCP_ROUTING&lt;/CODE&gt; key to the inputs clause:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_TCP_ROUTING = destA
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where &lt;CODE&gt;destA&lt;/CODE&gt; is just the name of the output group in outputs.conf, e.g. &lt;CODE&gt;destA&lt;/CODE&gt; in &lt;CODE&gt;[tcpout:destA]&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Apr 2011 11:45:33 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2011-04-14T11:45:33Z</dc:date>
    <item>
      <title>universal forwarder with more than one outputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-with-more-than-one-outputs-conf/m-p/81004#M16705</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I need to figure mine collection of universal forwarders to sent information to distinct  tcp ports...&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Basicaly:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
  &lt;P&gt;*NIX sending to indexer on port 7700&lt;/P&gt;
  
  &lt;P&gt;Input A sending to indexer on port 7701&lt;/P&gt;
  
  &lt;P&gt;Input B sending to indexer on port 7702&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;and etc..&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;H2&gt;Could someone please help me?&lt;/H2&gt;

&lt;H2&gt;Thanks&lt;/H2&gt;

&lt;H2&gt;Amaral&lt;/H2&gt;</description>
      <pubDate>Thu, 14 Apr 2011 01:21:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-with-more-than-one-outputs-conf/m-p/81004#M16705</guid>
      <dc:creator>mamaral</dc:creator>
      <dc:date>2011-04-14T01:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: universal forwarder with more than one outputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-with-more-than-one-outputs-conf/m-p/81005#M16706</link>
      <description>&lt;P&gt;I am not quite sure what you are looking to do. But if you are looking to configure a Universal Forwarder to forward all data to 3 different indexers for specific ports then you will want to create a stanza for each indexer in your outputs.conf file like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup=*

[tcpout:Nix]
server = xxx.xxx.xxx.xxx:7700

[tcpout:inputA]
server = xxx.xxx.xxx.xxx:7701

[tcpout:inputB]
server = xxx.xxx.xxx.xxx:7702
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want some additional information from the Splunk documentation, 
&lt;A href="http://www.splunk.com/base/Documentation/latest/Deploy/Clonedatad" rel="nofollow"&gt;here is a link for cloning data across indexes&lt;/A&gt;
and
&lt;A href="http://www.splunk.com/base/Documentation/4.2/Deploy/Forwarddatatothird-partysystemsd" rel="nofollow"&gt;here is a link for forwarding data to indexes&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2011 02:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-with-more-than-one-outputs-conf/m-p/81005#M16706</guid>
      <dc:creator>Rob</dc:creator>
      <dc:date>2011-04-14T02:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: universal forwarder with more than one outputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-with-more-than-one-outputs-conf/m-p/81006#M16707</link>
      <description>&lt;P&gt;There's rarely a point in doing this. You can just send them all to the same port. The Splunk forwarding protocol includes identification of the source host (and the source file, the destination index, and other things) so there's usually not any need or advantage to using more than one port.&lt;/P&gt;

&lt;P&gt;But if you really did need this for some reason (e.g., you're running multiple instances of Splunk on the host on different ports, or simply different hosts), you'd simply add a &lt;CODE&gt;_TCP_ROUTING&lt;/CODE&gt; key to the inputs clause:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_TCP_ROUTING = destA
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where &lt;CODE&gt;destA&lt;/CODE&gt; is just the name of the output group in outputs.conf, e.g. &lt;CODE&gt;destA&lt;/CODE&gt; in &lt;CODE&gt;[tcpout:destA]&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2011 11:45:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-with-more-than-one-outputs-conf/m-p/81006#M16707</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-04-14T11:45:33Z</dc:date>
    </item>
  </channel>
</rss>

