<?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 configure a heavy forwarder to reroute data from a universal forwarder into a special index different from the one specified in the UF's inputs.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-a-heavy-forwarder-to-reroute-data-from-a/m-p/202553#M40060</link>
    <description>&lt;P&gt;The outputs.conf forwardedindex whitelist setting only does the filter of events based on index name but doesn't update the index name in the data. That has to be done in the props-transforms conf file. &lt;/P&gt;

&lt;P&gt;Try this for your props.conf and transforms.conf in your Heavy forwarder&lt;BR /&gt;
&lt;STRONG&gt;Updated&lt;/STRONG&gt; fixed typo, added missing underscore&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf
[testdatenb2c]
TRANSFORMS-routing = transforms_routing,transforms_index

transforms.conf

[transforms_routing]
DEST_KEY=_TCP_ROUTING
FORMAT=B2CDATEN2EC
REGEX=.

[transforms_index]
DEST_KEY = _MetaData:Index
FORMAT = test
REGEX=.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 01 Sep 2015 15:12:29 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2015-09-01T15:12:29Z</dc:date>
    <item>
      <title>How to configure a heavy forwarder to reroute data from a universal forwarder into a special index different from the one specified in the UF's inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-a-heavy-forwarder-to-reroute-data-from-a/m-p/202552#M40059</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We need some help with rerouting data from a universal forwarder via a heavy forwarder into a different index than given in the UF inputs.conf.&lt;/P&gt;

&lt;P&gt;Universal Forwarder inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/opt/log/tomcat/test.log]
disabled = false
sourcetype = testdatenb2c
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Heavy Forwarder (as man in the middle) configuration:&lt;BR /&gt;
inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
host = splunk-heavy-dev-369368
[splunktcp://9697]
connection_host = ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[testdatenb2c]
TRANSFORMS-routing = transforms_TEST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[transforms_TEST]
DEST_KEY=_TCP_ROUTING
FORMAT=B2CDATEN2EC
REGEX=.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:B2CDATEN2EC]
#Disable the current filters from the defaults outputs.conf
forwardedindex.0.whitelist =
forwardedindex.1.blacklist =
forwardedindex.2.whitelist =

forwardedindex.0.whitelist = test
disabled = false
server = my-splunk-idx-dev:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now, the data gets indexed by the my-splunk-idx-dev server, but the data doesn't land in the index "test". Instead, it is being indexed in "main" as the default configured on the UF. &lt;BR /&gt;
What are we doing wrong here? How can we reroute the data to our "test" index on the my-splunk-idx-dev server?&lt;/P&gt;

&lt;P&gt;Thank you in advance for any help,&lt;/P&gt;

&lt;P&gt;Best regards, Tom&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 14:40:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-a-heavy-forwarder-to-reroute-data-from-a/m-p/202552#M40059</guid>
      <dc:creator>tpaulsen</dc:creator>
      <dc:date>2015-09-01T14:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure a heavy forwarder to reroute data from a universal forwarder into a special index different from the one specified in the UF's inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-a-heavy-forwarder-to-reroute-data-from-a/m-p/202553#M40060</link>
      <description>&lt;P&gt;The outputs.conf forwardedindex whitelist setting only does the filter of events based on index name but doesn't update the index name in the data. That has to be done in the props-transforms conf file. &lt;/P&gt;

&lt;P&gt;Try this for your props.conf and transforms.conf in your Heavy forwarder&lt;BR /&gt;
&lt;STRONG&gt;Updated&lt;/STRONG&gt; fixed typo, added missing underscore&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf
[testdatenb2c]
TRANSFORMS-routing = transforms_routing,transforms_index

transforms.conf

[transforms_routing]
DEST_KEY=_TCP_ROUTING
FORMAT=B2CDATEN2EC
REGEX=.

[transforms_index]
DEST_KEY = _MetaData:Index
FORMAT = test
REGEX=.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Sep 2015 15:12:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-a-heavy-forwarder-to-reroute-data-from-a/m-p/202553#M40060</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-01T15:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure a heavy forwarder to reroute data from a universal forwarder into a special index different from the one specified in the UF's inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-a-heavy-forwarder-to-reroute-data-from-a/m-p/202554#M40061</link>
      <description>&lt;P&gt;Thank you very much! It worked! For others...note that it´s _MetaData (with leading underscore).&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2015 09:03:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-a-heavy-forwarder-to-reroute-data-from-a/m-p/202554#M40061</guid>
      <dc:creator>tpaulsen</dc:creator>
      <dc:date>2015-09-02T09:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure a heavy forwarder to reroute data from a universal forwarder into a special index different from the one specified in the UF's inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-a-heavy-forwarder-to-reroute-data-from-a/m-p/202555#M40062</link>
      <description>&lt;P&gt;Thanks to both of you. Very helpful!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 19:50:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-a-heavy-forwarder-to-reroute-data-from-a/m-p/202555#M40062</guid>
      <dc:creator>wkupersa</dc:creator>
      <dc:date>2017-10-06T19:50:08Z</dc:date>
    </item>
  </channel>
</rss>

