<?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 to send different logs to different indexers from the same Universal Forwarder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-different-logs-to-different-indexers-from-the-same/m-p/211631#M41649</link>
    <description>&lt;P&gt;Thanks @ragedsparrow I haven't tried this but this is the correct answer.  Look at you helping out after just signing up a little over a year ago.  "Lowe's" is lucky to have you.  Thanks very much for helping out.  Keep up the good work.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2015 12:45:43 GMT</pubDate>
    <dc:creator>hartfoml</dc:creator>
    <dc:date>2015-11-03T12:45:43Z</dc:date>
    <item>
      <title>How to send different logs to different indexers from the same Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-different-logs-to-different-indexers-from-the-same/m-p/211629#M41647</link>
      <description>&lt;P&gt;I have one universal forwarder (UF) that is sending production data to the production intermediate Forwarder (IF) and then on to the production indexers.&lt;/P&gt;

&lt;P&gt;I would like to start collecting test data from the UF and send it to the LAB indexer.&lt;/P&gt;

&lt;P&gt;Is there any way to change the outputs.conf for one app on the UF and leave the outputs.conf that is presently sending live data to the IF?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 20:05:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-different-logs-to-different-indexers-from-the-same/m-p/211629#M41647</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2015-11-02T20:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to send different logs to different indexers from the same Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-different-logs-to-different-indexers-from-the-same/m-p/211630#M41648</link>
      <description>&lt;P&gt;You'll want to specify TCP_ROUTING in your inputs.  So, I'm assuming that you will have separate outputs.conf files with separate tcpout stanzas.  What you'll want to do in your inputs.conf file is specify which tcpout stanza to use:&lt;/P&gt;

&lt;P&gt;outputs.conf for app1:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:IndexerA]
 server=192.168.56.101:8089
 ....
 ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;outputs.conf for app2:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:IndexerB]
 server=192.168.56.102:8089
 ....
 ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your inputs.conf for each of the apps, you'll specify which tcpout stanza to use with TCP_ROUTING:&lt;/P&gt;

&lt;P&gt;inputs.conf for app1&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
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;inputs.conf for app2:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///path/to/log/B/logB.log]
 ....
 ....
 _TCP_ROUTING = IndexerB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't send data to an intermediate forwarder, but this is how I send separate data to separate indexers.  Let me know if this helps.&lt;/P&gt;

&lt;P&gt;References:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/admin/inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/admin/inputsconf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/admin/Outputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/admin/Outputsconf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/Forwarding/Configureforwarderswithoutputs.confd"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/Forwarding/Configureforwarderswithoutputs.confd&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 21:07:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-different-logs-to-different-indexers-from-the-same/m-p/211630#M41648</guid>
      <dc:creator>ragedsparrow</dc:creator>
      <dc:date>2015-11-02T21:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to send different logs to different indexers from the same Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-different-logs-to-different-indexers-from-the-same/m-p/211631#M41649</link>
      <description>&lt;P&gt;Thanks @ragedsparrow I haven't tried this but this is the correct answer.  Look at you helping out after just signing up a little over a year ago.  "Lowe's" is lucky to have you.  Thanks very much for helping out.  Keep up the good work.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 12:45:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-different-logs-to-different-indexers-from-the-same/m-p/211631#M41649</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2015-11-03T12:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to send different logs to different indexers from the same Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-different-logs-to-different-indexers-from-the-same/m-p/211632#M41650</link>
      <description>&lt;P&gt;I appreciate it @hartfoml . I have had to look this up in the past and had it in a reference document to be used again if ever I needed it.  when I came across your question it was very similar to what I was running into a while ago, so I figured I'd try to help.  &lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 14:44:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-different-logs-to-different-indexers-from-the-same/m-p/211632#M41650</guid>
      <dc:creator>ragedsparrow</dc:creator>
      <dc:date>2015-11-03T14:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to send different logs to different indexers from the same Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-different-logs-to-different-indexers-from-the-same/m-p/211633#M41651</link>
      <description>&lt;P&gt;Hi.  would you mind looking at this configuration also please?  I'm missing something in the flow, or should this be working? &lt;/P&gt;

&lt;P&gt;inputs.conf:&lt;BR /&gt;
[monitor:///syslog/logs/proxy_other/&lt;EM&gt;/&lt;/EM&gt;.log]&lt;BR /&gt;
host_segment = 4&lt;/P&gt;

&lt;H1&gt;sourcetype = mcafee:wg:kv&lt;/H1&gt;

&lt;P&gt;sourcetype = MWGaccess3&lt;BR /&gt;
index = proxy_index&lt;BR /&gt;
_TCP_ROUTING = main_indexcluster_idx  #main index cluster need a copy here for Splunk&lt;BR /&gt;
_SYSLOG_ROUTING = mskysap_syslog_group  #alternate source a copy here for another syslog server&lt;/P&gt;

&lt;P&gt;Props.conf:&lt;BR /&gt;
[source::///syslog/logs/proxy_other/&lt;EM&gt;/&lt;/EM&gt;.log]&lt;BR /&gt;
TRANSFORMS-mskysap = send_syslog_to_mskysap&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;BR /&gt;
[send_syslog_to_mskysap]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _SYSLOG_ROUTING&lt;BR /&gt;
FORMAT = mskysap_syslog_group&lt;/P&gt;

&lt;P&gt;outputs.conf&lt;BR /&gt;
[syslog:mskysap_syslog_group]&lt;BR /&gt;
type = TCP&lt;BR /&gt;
server = different_syslog_server:514&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-different-logs-to-different-indexers-from-the-same/m-p/211633#M41651</guid>
      <dc:creator>jaxjohnny2000</dc:creator>
      <dc:date>2020-09-29T22:21:45Z</dc:date>
    </item>
  </channel>
</rss>

