<?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 the universal forwarder send the same data to different farms with different index names? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372161#M67535</link>
    <description>&lt;P&gt;I’m not saying this is the only way, but it’s the only way I could think of.&lt;/P&gt;

&lt;P&gt;Maybe another option would be to have a &lt;CODE&gt;[default]&lt;/CODE&gt; props entry pointing to a transform to change the index &lt;EM&gt;on the indexers&lt;/EM&gt;. If you go this route, maybe you do this on the old indexers and change your inputs on the forwarders to point to the new index. This way you leave your complexity on the indexers that will be retired.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Feb 2018 23:06:09 GMT</pubDate>
    <dc:creator>micahkemp</dc:creator>
    <dc:date>2018-02-10T23:06:09Z</dc:date>
    <item>
      <title>Can the universal forwarder send the same data to different farms with different index names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372156#M67530</link>
      <description>&lt;P&gt;We are in a transition from the "legacy" farm to the new one. During this transition period, the clients would like to send the same data to different farms with different index names. Is it possible?&lt;/P&gt;

&lt;P&gt;After all the &lt;CODE&gt;outputs.conf&lt;/CODE&gt; files get combined...  &lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 18:17:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372156#M67530</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-02-09T18:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can the universal forwarder send the same data to different farms with different index names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372157#M67531</link>
      <description>&lt;P&gt;I think your best bet may be to have your universal forwarder(s) send to two heavy forwarders thusly:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup=heavyforwarder1,heavyforwarder2

[tcpout:heavyforwarder1]
server=10.1.1.197:9997

[tcpout:heavyforwarder2]
server=10.1.1.200:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Each heavy forwarder would be configured to rewrite &lt;CODE&gt;_MetaData:Index&lt;/CODE&gt; appropriately via this type of config:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
TRANSFORMS-sendalltocorrectindex = sendalltocorrectindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sendalltocorrectindex]
REGEX = .
DEST_KEY = _MetaData:Index
FORMAT = index1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(with heavyforwarder2 using different value for FORMAT to specify the valid index for that site/farm/whatever)&lt;/P&gt;

&lt;P&gt;The key is that the duplicate feeding needs to occur at the Universal Forwarder, specifically because UFs don't cook data.  Once the data is cooked, it stays cooked, and additional indexers, heavy forwarders, whatever won't do any further props/transforms on it (that's not 100% true, but it's an exception and ugly configuration to make it false).&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2018 03:16:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372157#M67531</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-10T03:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can the universal forwarder send the same data to different farms with different index names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372158#M67532</link>
      <description>&lt;P&gt;Very interesting @micahkemp!! &lt;/P&gt;

&lt;P&gt;Maybe I completely miss the point but let's say I have two apps in the UF, each monitors the same data, in the &lt;CODE&gt;inputs.conf&lt;/CODE&gt; we'll specify the specific index names and in each app's &lt;CODE&gt;outputs.conf&lt;/CODE&gt; we'll specify the indexers of the proper farm.&lt;/P&gt;

&lt;P&gt;Will it work?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2018 22:24:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372158#M67532</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-02-10T22:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can the universal forwarder send the same data to different farms with different index names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372159#M67533</link>
      <description>&lt;P&gt;You’re going to have issues monitoring the same file twice. Splunk will realize it’s already been indexed and skip it.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2018 22:37:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372159#M67533</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-10T22:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can the universal forwarder send the same data to different farms with different index names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372160#M67534</link>
      <description>&lt;P&gt;Gorgeous @micahkemp! Is there a way to avoid it? or "just" two forwarders on the same server...&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2018 23:00:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372160#M67534</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-02-10T23:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can the universal forwarder send the same data to different farms with different index names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372161#M67535</link>
      <description>&lt;P&gt;I’m not saying this is the only way, but it’s the only way I could think of.&lt;/P&gt;

&lt;P&gt;Maybe another option would be to have a &lt;CODE&gt;[default]&lt;/CODE&gt; props entry pointing to a transform to change the index &lt;EM&gt;on the indexers&lt;/EM&gt;. If you go this route, maybe you do this on the old indexers and change your inputs on the forwarders to point to the new index. This way you leave your complexity on the indexers that will be retired.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2018 23:06:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372161#M67535</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-10T23:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can the universal forwarder send the same data to different farms with different index names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372162#M67536</link>
      <description>&lt;P&gt;Makes perfect sense @micahkemp. This should do it.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2018 23:09:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372162#M67536</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-02-10T23:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can the universal forwarder send the same data to different farms with different index names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372163#M67537</link>
      <description>&lt;P&gt;You could do all of the posted configuration on the indexers, I just kinda assumed you didn’t want to due to the nature of your question. The configs should be helpful either way, the key is the events need to be sent from a Universal Forwarder to two different Splunk instanes, which is where the index change occurs.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2018 23:46:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372163#M67537</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-10T23:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can the universal forwarder send the same data to different farms with different index names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372164#M67538</link>
      <description>&lt;P&gt;Perfect - thank you. &lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2018 00:38:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372164#M67538</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-02-11T00:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can the universal forwarder send the same data to different farms with different index names?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372165#M67539</link>
      <description>&lt;P&gt;Gorgeous solution @micahkemp. Took us a couple of months to test it ; - )&lt;/P&gt;

&lt;P&gt;It's interesting about the underscore difference between &lt;CODE&gt;DEST_KEY = _MetaData:Index&lt;/CODE&gt; and &lt;CODE&gt;DEST_KEY = MetaData:Host&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 19:04:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-universal-forwarder-send-the-same-data-to-different/m-p/372165#M67539</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-08-08T19:04:32Z</dc:date>
    </item>
  </channel>
</rss>

