<?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: Forward specific index to a specific receiver in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Forward-specific-index-to-a-specific-receiver/m-p/191708#M38176</link>
    <description>&lt;P&gt;thanks lguinn,&lt;/P&gt;

&lt;P&gt;Damien&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2014 07:31:01 GMT</pubDate>
    <dc:creator>ddarmand</dc:creator>
    <dc:date>2014-01-08T07:31:01Z</dc:date>
    <item>
      <title>Forward specific index to a specific receiver</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forward-specific-index-to-a-specific-receiver/m-p/191706#M38174</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;i have three index : A, B, C on my heavy forwarder and i want to forward to different receiver,&lt;/P&gt;

&lt;P&gt;example : A to X, B to Y and C to Y too&lt;/P&gt;

&lt;P&gt;How can i do that ?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 07:50:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forward-specific-index-to-a-specific-receiver/m-p/191706#M38174</guid>
      <dc:creator>ddarmand</dc:creator>
      <dc:date>2013-12-30T07:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Forward specific index to a specific receiver</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forward-specific-index-to-a-specific-receiver/m-p/191707#M38175</link>
      <description>&lt;P&gt;First, if you actually have indexes on your forwarder - it isn't just a forwarder anymore, it is also an indexer and it needs a license.&lt;/P&gt;

&lt;P&gt;Second, if you can, route the events to the receiver based on sourcetype or source or host - not index, if possible:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetypeA1]
TRANSFORM-a1=routeToReceiverX

[sourcetypeA2]
TRANSFORM-a2=routeToReceiverX

[sourcetypeB]
TRANSFORM-b1=routeToReceiverY

etc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[routeToReceiverX]
REGEX=.
DEST_KEY=_TCP_ROUTING
FORMAT=ReceiverXGroup

etc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;outputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:ReceiverXGroup]
server=ReceiverX:9997

[tcpout:ReceiverYGroup]
server=ReceiverY:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you must route based on index, do this in props.conf and transforms.conf instead (outputs.conf stays the same):&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::*]
TRANSFORM-h1=routeToReceiverX,routeToReceiverY,routeToReceiverZ
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[routeToReceiverX]
SOURCE_KEY=_MetaData:Index
REGEX=A
DEST_KEY=_TCP_ROUTING
FORMAT=ReceiverXGroup

[routeToReceiverY]
SOURCE_KEY=_MetaData:Index
REGEX=B
DEST_KEY=_TCP_ROUTING
FORMAT=ReceiverYGroup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am not entirely sure that this second method will work...&lt;/P&gt;

&lt;P&gt;Here is a link to the documentation on &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/Forwarding/Routeandfilterdatad"&gt;Route and filter data&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 21:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forward-specific-index-to-a-specific-receiver/m-p/191707#M38175</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-12-30T21:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Forward specific index to a specific receiver</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forward-specific-index-to-a-specific-receiver/m-p/191708#M38176</link>
      <description>&lt;P&gt;thanks lguinn,&lt;/P&gt;

&lt;P&gt;Damien&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2014 07:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forward-specific-index-to-a-specific-receiver/m-p/191708#M38176</guid>
      <dc:creator>ddarmand</dc:creator>
      <dc:date>2014-01-08T07:31:01Z</dc:date>
    </item>
  </channel>
</rss>

