<?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: Event-based index routing at indexer layer when heavy forwarder is involved in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379939#M68626</link>
    <description>&lt;P&gt;yep, that should work&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2019 22:16:28 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2019-03-25T22:16:28Z</dc:date>
    <item>
      <title>Event-based index routing at indexer layer when heavy forwarder is involved</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379932#M68619</link>
      <description>&lt;P&gt;I'm currently sending logs from a UF &amp;gt; HF &amp;gt;  two indexer clusters. &lt;/P&gt;

&lt;P&gt;I have the need to set the index name at the indexing layer, since the name of the index will be different, depending on the indexer cluster. &lt;/P&gt;

&lt;P&gt;I tried putting the following props and transforms at the indexing layer:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my:sourcetype]
TRANSFORMS-route_to_new_index = set_new_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[set_new_index]
SOURCE_KEY = MetaData:Sourcetype
DEST_KEY =_MetaData:Index
REGEX = (sourcetype::my:sourcetype)
FORMAT = new_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This does not change the index, however placing these same props and transforms on the HF does change the index. This doesn't help me though since the index name needs to be set &lt;STRONG&gt;after&lt;/STRONG&gt; the data is split off to each indexer cluster. Is it really not possible to do this at the indexer layer when a HF is involved? Any other suggestions on how to accomplish the index rename?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 20:49:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379932#M68619</guid>
      <dc:creator>ehowardl3</dc:creator>
      <dc:date>2019-03-25T20:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based index routing at indexer layer when heavy forwarder is involved</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379933#M68620</link>
      <description>&lt;P&gt;@ehowardl3 is the data split/cloned to both idx clusters or load balanced?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 20:56:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379933#M68620</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-03-25T20:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based index routing at indexer layer when heavy forwarder is involved</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379934#M68621</link>
      <description>&lt;P&gt;@MuS, thanks for your time. The data is split/cloned to both idx clusters.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 20:58:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379934#M68621</guid>
      <dc:creator>ehowardl3</dc:creator>
      <dc:date>2019-03-25T20:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based index routing at indexer layer when heavy forwarder is involved</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379935#M68622</link>
      <description>&lt;P&gt;please hold, this can be done on the HWF &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 20:59:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379935#M68622</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-03-25T20:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based index routing at indexer layer when heavy forwarder is involved</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379936#M68623</link>
      <description>&lt;P&gt;Hi ehowardl3,&lt;/P&gt;

&lt;P&gt;first you need to have two separate &lt;CODE&gt;tcpout&lt;/CODE&gt; entries in &lt;CODE&gt;outputs.conf&lt;/CODE&gt; of your HWF:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = cluster1 

[tcpout:cluster1]
server = &amp;lt;ip address&amp;gt;:&amp;lt;port&amp;gt;

[tcpout:cluster2]
server = &amp;lt;ip address&amp;gt;:&amp;lt;port&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Next you need a &lt;CODE&gt;props.conf&lt;/CODE&gt; like the one you had with an additional line:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my:sourcetype]
TRANSFORMS-001-route_to_new_index_cluster2 = 001-route_to_new_index_cluster2, 002-route_to_cluster2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then in &lt;CODE&gt;transforms.conf&lt;/CODE&gt; you set it up like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[001-route_to_new_index_cluster2]
DEST_KEY =_MetaData:Index
REGEX = .
FORMAT = my_new_index # set to what ever you want

[002-route_to_cluster2]
REGEX = .
DEST_KEY = _TCP_ROUTING
FORMAT = cluster2  # which is the name from outputs.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The option &lt;CODE&gt;defaultGroup=cluster1&lt;/CODE&gt; in &lt;CODE&gt;outputs.conf&lt;/CODE&gt; will send all data unchanged to &lt;CODE&gt;cluster1&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;After applying this config you need to restart the HWF.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 21:12:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379936#M68623</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-03-25T21:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based index routing at indexer layer when heavy forwarder is involved</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379937#M68624</link>
      <description>&lt;P&gt;Refer to MuS's feedback but "Is it really not possible to do this at the indexer layer when a HF is involved?", not under normal circumstances. Once data is parsed it is not re-parsed at the next tier, so transforms do not apply twice.&lt;/P&gt;

&lt;P&gt;While there are advanced tricks to "recook" the data it would not make sense for your scenario.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 21:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379937#M68624</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2019-03-25T21:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based index routing at indexer layer when heavy forwarder is involved</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379938#M68625</link>
      <description>&lt;P&gt;Thank you! This makes sense and should work for me. So if there are two different source types that I need to send to two different indexes, I'm assuming the props and transforms would look something like this:&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[001-route_to_new_index_cluster2]
SOURCE_KEY = MetaData:Sourcetype
DEST_KEY =_MetaData:Index
REGEX = (sourcetype::my:sourcetype1)
FORMAT = my_new_index1

[002-route_to_new_index_cluster2]
SOURCE_KEY = MetaData:Sourcetype
DEST_KEY =_MetaData:Index
REGEX = (sourcetype::my:sourcetype2)
FORMAT = my_new_index2


[003-route_to_cluster2]
REGEX = .
DEST_KEY = _TCP_ROUTING
FORMAT = cluster2  # which is the name from outputs.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my:sourcetype1]
TRANSFORMS-001-route_to_new_index_cluster2 = 001-route_to_new_index_cluster2, 003-route_to_cluster2

[my:sourcetype2]
TRANSFORMS-002-route_to_new_index_cluster2 = 002-route_to_new_index_cluster2, 003-route_to_cluster2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Correct?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 22:14:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379938#M68625</guid>
      <dc:creator>ehowardl3</dc:creator>
      <dc:date>2019-03-25T22:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based index routing at indexer layer when heavy forwarder is involved</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379939#M68626</link>
      <description>&lt;P&gt;yep, that should work&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 22:16:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379939#M68626</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-03-25T22:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based index routing at indexer layer when heavy forwarder is involved</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379940#M68627</link>
      <description>&lt;P&gt;except the &lt;CODE&gt;REGEX&lt;/CODE&gt;, just use &lt;CODE&gt;.&lt;/CODE&gt; because the &lt;CODE&gt;props.conf&lt;/CODE&gt; already limits the use of the transforms to specific sourcetypes &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 22:17:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379940#M68627</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-03-25T22:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based index routing at indexer layer when heavy forwarder is involved</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379941#M68628</link>
      <description>&lt;P&gt;Ah yeah, good point. Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 22:40:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379941#M68628</guid>
      <dc:creator>ehowardl3</dc:creator>
      <dc:date>2019-03-25T22:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based index routing at indexer layer when heavy forwarder is involved</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379942#M68629</link>
      <description>&lt;P&gt;@gjanders - thanks for the info!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 22:41:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379942#M68629</guid>
      <dc:creator>ehowardl3</dc:creator>
      <dc:date>2019-03-25T22:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based index routing at indexer layer when heavy forwarder is involved</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379943#M68630</link>
      <description>&lt;P&gt;@MuS, one thing that has me a little confused - since props.conf calls out the sourcetype and then routes it to cluster2, won't that catch all the data of that sourcetype instead of splitting the data and sending it to cluster2 and to the default group?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 14:51:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379943#M68630</guid>
      <dc:creator>ehowardl3</dc:creator>
      <dc:date>2019-03-26T14:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based index routing at indexer layer when heavy forwarder is involved</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379944#M68631</link>
      <description>&lt;P&gt;That's where the &lt;CODE&gt;defaultGroup = cluster1&lt;/CODE&gt; in &lt;CODE&gt;outputs.conf&lt;/CODE&gt; kicks in, it will send ANY data to the target.&lt;/P&gt;

&lt;P&gt;But you can also remove the &lt;CODE&gt;defaultGroup = cluster1&lt;/CODE&gt; and do something like this:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my:sourcetype1]
TRANSFORMS-000-route_to_cluster = 000-route_to_cluster1
TRANSFORMS-001-route_to_new_index_cluster2 = 001-route_to_new_index_cluster2, 003-route_to_cluster2

[my:sourcetype2]
TRANSFORMS-000-route_to_cluster = 000-route_to_cluster1
TRANSFORMS-001-route_to_new_index_cluster2 = 002-route_to_new_index_cluster2, 003-route_to_cluster2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [001-route_to_new_index_cluster2]
 DEST_KEY =_MetaData:Index
 REGEX = .
 FORMAT = my_new_index1

 [002-route_to_new_index_cluster2]
 DEST_KEY =_MetaData:Index
 REGEX = .
 FORMAT = my_new_index2

 [000-route_to_cluster1]
 REGEX = .
 DEST_KEY = _TCP_ROUTING
 FORMAT = cluster1  # which is the name from outputs.conf

 [003-route_to_cluster2]
 REGEX = .
 DEST_KEY = _TCP_ROUTING
 FORMAT = cluster2  # which is the name from outputs.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope that make sense ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 19:16:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379944#M68631</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-03-26T19:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based index routing at indexer layer when heavy forwarder is involved</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379945#M68632</link>
      <description>&lt;P&gt;Perfect. Thanks for the clarification.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 12:21:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-based-index-routing-at-indexer-layer-when-heavy-forwarder/m-p/379945#M68632</guid>
      <dc:creator>ehowardl3</dc:creator>
      <dc:date>2019-03-27T12:21:41Z</dc:date>
    </item>
  </channel>
</rss>

