<?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 heavy forwarder to route base on _raw values in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/heavy-forwarder-to-route-base-on-raw-values/m-p/77281#M15823</link>
    <description>&lt;P&gt;I'm trying to use the heavy forwarder to route data to different indexes based on values in _raw , is this possible ?&lt;BR /&gt;&lt;BR /&gt;
  the configuration files are:  &lt;/P&gt;

&lt;H2&gt;inputs.conf:  &lt;/H2&gt;

&lt;P&gt;[tcp://9997]&lt;BR /&gt;&lt;BR /&gt;
sourcetype = FromFooandBarbysinglehost  &lt;/P&gt;

&lt;H2&gt;props.conf:&lt;/H2&gt;

&lt;P&gt;[FromFooandBarbysinglehost]&lt;BR /&gt;&lt;BR /&gt;
BREAK_ONLY_BEFORE = ^&lt;BR /&gt;&lt;BR /&gt;
TRANSFORMS-routing = FromFoo,FromBar  &lt;/P&gt;

&lt;H2&gt;transforms.conf:  &lt;/H2&gt;

&lt;P&gt;[FromFoo]&lt;BR /&gt;&lt;BR /&gt;
REGEX = (?i) From|.+?Foo&lt;BR /&gt;&lt;BR /&gt;
DEST_KEY = _TCP_ROUTING&lt;BR /&gt;&lt;BR /&gt;
FORMAT = outtoFoo  &lt;/P&gt;

&lt;P&gt;[FromBar]&lt;BR /&gt;&lt;BR /&gt;
REGEX = (?i) From|.+?Bar&lt;BR /&gt;&lt;BR /&gt;
DEST_KEY = _TCP_ROUTING&lt;BR /&gt;&lt;BR /&gt;
FORMAT = outtoBar  &lt;/P&gt;

&lt;H2&gt;outputs.conf:  &lt;/H2&gt;

&lt;P&gt;[tcpout:outtoFoo]&lt;BR /&gt;&lt;BR /&gt;
server = 10.10.10.10:1111&lt;BR /&gt;&lt;BR /&gt;
sendCookedData = false  &lt;/P&gt;

&lt;P&gt;[tcpout:outtoBar]&lt;BR /&gt;&lt;BR /&gt;
server = 10.10.10.10:2222&lt;BR /&gt;&lt;BR /&gt;
sendCookedData = false&lt;BR /&gt;&lt;BR /&gt;
 in the indexer 10.10.10.10 the TCP port 1111 is indexed to foo index , and 2222 is indexed to Bar index)  &lt;/P&gt;

&lt;P&gt;me problem is that I see both foo data and bar data in both indexes , it is like there is no termination to the transforms process and both are sent to both ports.&lt;BR /&gt;&lt;BR /&gt;
I double checked my REGEX in the search bar in splunk and it does show only the relevant data  &lt;/P&gt;

&lt;P&gt;what am I missing ?  &lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2012 11:53:26 GMT</pubDate>
    <dc:creator>gooza</dc:creator>
    <dc:date>2012-02-23T11:53:26Z</dc:date>
    <item>
      <title>heavy forwarder to route base on _raw values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/heavy-forwarder-to-route-base-on-raw-values/m-p/77281#M15823</link>
      <description>&lt;P&gt;I'm trying to use the heavy forwarder to route data to different indexes based on values in _raw , is this possible ?&lt;BR /&gt;&lt;BR /&gt;
  the configuration files are:  &lt;/P&gt;

&lt;H2&gt;inputs.conf:  &lt;/H2&gt;

&lt;P&gt;[tcp://9997]&lt;BR /&gt;&lt;BR /&gt;
sourcetype = FromFooandBarbysinglehost  &lt;/P&gt;

&lt;H2&gt;props.conf:&lt;/H2&gt;

&lt;P&gt;[FromFooandBarbysinglehost]&lt;BR /&gt;&lt;BR /&gt;
BREAK_ONLY_BEFORE = ^&lt;BR /&gt;&lt;BR /&gt;
TRANSFORMS-routing = FromFoo,FromBar  &lt;/P&gt;

&lt;H2&gt;transforms.conf:  &lt;/H2&gt;

&lt;P&gt;[FromFoo]&lt;BR /&gt;&lt;BR /&gt;
REGEX = (?i) From|.+?Foo&lt;BR /&gt;&lt;BR /&gt;
DEST_KEY = _TCP_ROUTING&lt;BR /&gt;&lt;BR /&gt;
FORMAT = outtoFoo  &lt;/P&gt;

&lt;P&gt;[FromBar]&lt;BR /&gt;&lt;BR /&gt;
REGEX = (?i) From|.+?Bar&lt;BR /&gt;&lt;BR /&gt;
DEST_KEY = _TCP_ROUTING&lt;BR /&gt;&lt;BR /&gt;
FORMAT = outtoBar  &lt;/P&gt;

&lt;H2&gt;outputs.conf:  &lt;/H2&gt;

&lt;P&gt;[tcpout:outtoFoo]&lt;BR /&gt;&lt;BR /&gt;
server = 10.10.10.10:1111&lt;BR /&gt;&lt;BR /&gt;
sendCookedData = false  &lt;/P&gt;

&lt;P&gt;[tcpout:outtoBar]&lt;BR /&gt;&lt;BR /&gt;
server = 10.10.10.10:2222&lt;BR /&gt;&lt;BR /&gt;
sendCookedData = false&lt;BR /&gt;&lt;BR /&gt;
 in the indexer 10.10.10.10 the TCP port 1111 is indexed to foo index , and 2222 is indexed to Bar index)  &lt;/P&gt;

&lt;P&gt;me problem is that I see both foo data and bar data in both indexes , it is like there is no termination to the transforms process and both are sent to both ports.&lt;BR /&gt;&lt;BR /&gt;
I double checked my REGEX in the search bar in splunk and it does show only the relevant data  &lt;/P&gt;

&lt;P&gt;what am I missing ?  &lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2012 11:53:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/heavy-forwarder-to-route-base-on-raw-values/m-p/77281#M15823</guid>
      <dc:creator>gooza</dc:creator>
      <dc:date>2012-02-23T11:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: heavy forwarder to route base on _raw values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/heavy-forwarder-to-route-base-on-raw-values/m-p/77282#M15824</link>
      <description>&lt;P&gt;when your data arrives in the indexers, what is the sourcetype? Is it &lt;CODE&gt;FromFooandBarbysinglehost&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2012 16:55:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/heavy-forwarder-to-route-base-on-raw-values/m-p/77282#M15824</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-02-23T16:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: heavy forwarder to route base on _raw values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/heavy-forwarder-to-route-base-on-raw-values/m-p/77283#M15825</link>
      <description>&lt;P&gt;no  ,  the tcpout redirect the data to different TCP  ports on the indexer and each port has its own source type and index&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2012 07:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/heavy-forwarder-to-route-base-on-raw-values/m-p/77283#M15825</guid>
      <dc:creator>gooza</dc:creator>
      <dc:date>2012-02-24T07:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: heavy forwarder to route base on _raw values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/heavy-forwarder-to-route-base-on-raw-values/m-p/77284#M15826</link>
      <description>&lt;P&gt;&lt;CODE&gt;_TCP_ROUTING&lt;/CODE&gt; is used to send data to another indexer. If the data is already at the indexer you want, just use the &lt;CODE&gt;_MetaData:Index&lt;/CODE&gt; key to change the index for that event.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[FromFoo]
REGEX = (?i) From|.+?Foo
DEST_KEY = _MetaData:Index
FORMAT = foo_index

[FromBar]
REGEX = (?i) From|.+?Bar
DEST_KEY = _MetaData:Index
FORMAT = bar_index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Apr 2012 16:04:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/heavy-forwarder-to-route-base-on-raw-values/m-p/77284#M15826</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2012-04-16T16:04:26Z</dc:date>
    </item>
  </channel>
</rss>

