<?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: How can I send logs from one universal forwarder to two different indexers depending on the logs type? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-send-logs-from-one-universal-forwarder-to-two/m-p/267594#M51269</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;yes you can do this.&lt;/P&gt;

&lt;P&gt;You need to create two output.conf stanzas&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:south]
 server=server_south:9997
 [tcpout:east]
 server=server_east:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you need to do a TCP_routing in inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://path/myapp1.log]
 _TCP_ROUTING = south
[monitor://path/myapp3.log]
 _TCP_ROUTING = east
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps. You have to create a input stanza for each log in this example. But can also do the matching via Regex to reduce the amount of input stanzas.&lt;/P&gt;

&lt;P&gt;kind regards&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2016 19:45:43 GMT</pubDate>
    <dc:creator>TStrauch</dc:creator>
    <dc:date>2016-10-20T19:45:43Z</dc:date>
    <item>
      <title>How can I send logs from one universal forwarder to two different indexers depending on the logs type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-send-logs-from-one-universal-forwarder-to-two/m-p/267593#M51268</link>
      <description>&lt;P&gt;I am planning to send the logs to multiple Splunk indexers (location) based on the logs type from one universal forwarder&lt;/P&gt;

&lt;P&gt;example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    server-1         myapp1.log  -&amp;gt; indexer-South
                     myapp2.log -&amp;gt; indexer-south
                     myapp3.log -&amp;gt; indexer-east
                     myapp4.log - &amp;gt; indexer-east

   server-2         myapp1.log  -&amp;gt; indexer-South
                     myapp2.log -&amp;gt; indexer-south
                     myapp3.log -&amp;gt; indexer-east
                     myapp4.log - &amp;gt; indexer-east
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;can this be done? I would like some feedback how to do that. &lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 19:35:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-send-logs-from-one-universal-forwarder-to-two/m-p/267593#M51268</guid>
      <dc:creator>raindrop18</dc:creator>
      <dc:date>2016-10-20T19:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I send logs from one universal forwarder to two different indexers depending on the logs type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-send-logs-from-one-universal-forwarder-to-two/m-p/267594#M51269</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;yes you can do this.&lt;/P&gt;

&lt;P&gt;You need to create two output.conf stanzas&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:south]
 server=server_south:9997
 [tcpout:east]
 server=server_east:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you need to do a TCP_routing in inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://path/myapp1.log]
 _TCP_ROUTING = south
[monitor://path/myapp3.log]
 _TCP_ROUTING = east
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps. You have to create a input stanza for each log in this example. But can also do the matching via Regex to reduce the amount of input stanzas.&lt;/P&gt;

&lt;P&gt;kind regards&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 19:45:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-send-logs-from-one-universal-forwarder-to-two/m-p/267594#M51269</guid>
      <dc:creator>TStrauch</dc:creator>
      <dc:date>2016-10-20T19:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I send logs from one universal forwarder to two different indexers depending on the logs type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-send-logs-from-one-universal-forwarder-to-two/m-p/267595#M51270</link>
      <description>&lt;P&gt;perfect,thanks much TStrauch&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 19:48:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-send-logs-from-one-universal-forwarder-to-two/m-p/267595#M51270</guid>
      <dc:creator>raindrop18</dc:creator>
      <dc:date>2016-10-20T19:48:02Z</dc:date>
    </item>
  </channel>
</rss>

