<?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 do I forward the same data to two different servers? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-the-same-data-to-two-different-servers/m-p/267766#M51328</link>
    <description>&lt;P&gt;Do I need to refer to them at all in inputs.conf, or just leave that totally off?&lt;/P&gt;

&lt;P&gt;The way that you have it laid out it looks like it's just going to default to the cloning, so I should just be able to declare each monitored log as such:&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/mylog.log]&lt;BR /&gt;
 index = myindex&lt;BR /&gt;
 sourcetype = mysourcetype&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2016 19:15:18 GMT</pubDate>
    <dc:creator>sheltomt</dc:creator>
    <dc:date>2016-02-04T19:15:18Z</dc:date>
    <item>
      <title>How do I forward the same data to two different servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-the-same-data-to-two-different-servers/m-p/267764#M51326</link>
      <description>&lt;P&gt;We're prepping for a migration, so what I want is the exact same data going to OldServer and NewServer&lt;/P&gt;

&lt;P&gt;Here's what I have so far:&lt;/P&gt;

&lt;P&gt;Outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
autoLB = true
maxQueueSize = 500KB
forwardedindex.0.whitelist = .*
forwardedindex.1.blacklist = _.*
forwardedindex.2.whitelist = _audit
forwardedindex.filter.disable = false

[tcpout:SplunkGroup]
defaultGroup=indexer1,indexer2

[tcpout:indexer1]
server = OldServerIP:8001

[tcpout:indexer2]
server = NewServerIP:8001
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/mylog.log]
index = myindex
sourcetype = mysourcetype
_TCP_ROUTING = SplunkGroup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I set it up like this, I get no data, so obviously something is wrong.  Splunkd.log isn't showing anything outside the norm&lt;/P&gt;

&lt;P&gt;Anyone have ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 18:17:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-the-same-data-to-two-different-servers/m-p/267764#M51326</guid>
      <dc:creator>sheltomt</dc:creator>
      <dc:date>2016-02-04T18:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I forward the same data to two different servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-the-same-data-to-two-different-servers/m-p/267765#M51327</link>
      <description>&lt;P&gt;Try something like this for your outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
autoLB = true
maxQueueSize = 500KB
forwardedindex.0.whitelist = .*
forwardedindex.1.blacklist = _.*
forwardedindex.2.whitelist = _audit
forwardedindex.filter.disable = false
defaultGroup=indexer1,indexer2

 [tcpout:indexer1]
 server = OldServerIP:8001

 [tcpout:indexer2]
 server = NewServerIP:8001
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See here for more information &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/Forwarding/Configureforwarderswithoutputs.confd#Data_cloning"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.2/Forwarding/Configureforwarderswithoutputs.confd#Data_cloning&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 18:28:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-the-same-data-to-two-different-servers/m-p/267765#M51327</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-04T18:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I forward the same data to two different servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-the-same-data-to-two-different-servers/m-p/267766#M51328</link>
      <description>&lt;P&gt;Do I need to refer to them at all in inputs.conf, or just leave that totally off?&lt;/P&gt;

&lt;P&gt;The way that you have it laid out it looks like it's just going to default to the cloning, so I should just be able to declare each monitored log as such:&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/mylog.log]&lt;BR /&gt;
 index = myindex&lt;BR /&gt;
 sourcetype = mysourcetype&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 19:15:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-the-same-data-to-two-different-servers/m-p/267766#M51328</guid>
      <dc:creator>sheltomt</dc:creator>
      <dc:date>2016-02-04T19:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I forward the same data to two different servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-the-same-data-to-two-different-servers/m-p/267767#M51329</link>
      <description>&lt;P&gt;That is correct. You don't need anything in inputs.conf if all the data is supposed to go to the defaultGroup.&lt;/P&gt;

&lt;P&gt;The input.conf entry is required for selective routing (not relevant here but just want to bring it up).&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 19:18:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-the-same-data-to-two-different-servers/m-p/267767#M51329</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-04T19:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I forward the same data to two different servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-the-same-data-to-two-different-servers/m-p/267768#M51330</link>
      <description>&lt;P&gt;Interesting&lt;/P&gt;

&lt;P&gt;Your declaration format works just fine, however, if I don't have my NewServer reachable, OldServer won't work either&lt;/P&gt;

&lt;P&gt;Odd.  But, I figure once I work the ACLs out, everything should work as necessary.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 19:56:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-the-same-data-to-two-different-servers/m-p/267768#M51330</guid>
      <dc:creator>sheltomt</dc:creator>
      <dc:date>2016-02-04T19:56:45Z</dc:date>
    </item>
  </channel>
</rss>

