<?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: Splunk HF not forward all data through a custom app in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-HF-not-forward-all-data-through-a-custom-app/m-p/753273#M23108</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you're right, data was previosly parsed by UF&amp;nbsp; trough a custom application&amp;nbsp; using the following:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;props.conf&lt;BR /&gt;[cyber_audit] &amp;lt;&amp;lt;-- sourcetype&lt;BR /&gt;INDEXED_EXTRACTIONS = CSV&lt;BR /&gt;HEADER_FIELD_LINE_NUMBER = 1&lt;BR /&gt;FIELD_DELIMITER = \t&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;inputs.conf&lt;BR /&gt;[monitor:///home/cyber/log_applicativi/log_applicativi.*]&lt;BR /&gt;sourcetype = cyber_audit&lt;BR /&gt;disabled = false&lt;BR /&gt;index = &lt;STRONG&gt;customers_index&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after removing props.conf contents the logs are now forwarded to my_peer_nodes and&amp;nbsp;&amp;nbsp;customers_to_tel but without fields extraction as expected.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Sep 2025 13:25:29 GMT</pubDate>
    <dc:creator>antoniomarongiu</dc:creator>
    <dc:date>2025-09-18T13:25:29Z</dc:date>
    <item>
      <title>Splunk HF not forward all data through a custom app</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-HF-not-forward-all-data-through-a-custom-app/m-p/753147#M23086</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have an app on one of our Heavy Forwarders that is supposed to route traffic:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;All events go to our indexer cluster (my_peers_nodes)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If the index is&amp;nbsp; &lt;STRONG&gt;customers_index&lt;/STRONG&gt; , events should also be forwarded to two additional Heavy Forwarders (&lt;STRONG&gt;customers_to_tel&lt;/STRONG&gt;).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here is the configuration:&lt;BR /&gt;outputs.conf&lt;BR /&gt;[tcpout:&lt;STRONG&gt;customers_to_tel&lt;/STRONG&gt;]&lt;BR /&gt;disabled = false&lt;BR /&gt;server = 10.x.x.177:9997,10.x.x178:9997&lt;BR /&gt;&lt;BR /&gt;props.conf&lt;BR /&gt;[default]&lt;BR /&gt;TRANSFORMS-routing = allRouting&lt;BR /&gt;&lt;BR /&gt;transforms.conf&lt;/P&gt;&lt;P&gt;[allRouting]&lt;/P&gt;&lt;P&gt;SOURCE_KEY= _MetaData:Index&lt;BR /&gt;REGEX= &lt;STRONG&gt;customers_index&lt;/STRONG&gt;&lt;BR /&gt;DEST_KEY= _TCP_ROUTING&lt;BR /&gt;FORMAT= my_peers_nodes,&lt;STRONG&gt;customers_to_tel&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The problem is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Some sourcetypes with index=&lt;STRONG&gt;customers_index&lt;/STRONG&gt; are correctly forwarded to the additional Heavy Forwarders.&lt;/LI&gt;&lt;LI&gt;But other sourcetypes with the same index=&lt;STRONG&gt;customers_index&lt;/STRONG&gt;&amp;nbsp;remain only on our Splunk environment and are not being forwarded to the additional Heavy Forwarders.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So the routing works partially depending on the sourcetype.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Why would events with index=&lt;STRONG&gt;customers_index&lt;/STRONG&gt;&amp;nbsp;not always match the transforms.conf rule?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is it possible that _MetaData:Index is not always available on the Heavy Forwarder if events are already cooked?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;What is the best practice to ensure all events with index=&lt;STRONG&gt;customers_index&lt;/STRONG&gt;&amp;nbsp;are also forwarded to the extra Heavy Forwarders?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 14:14:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-HF-not-forward-all-data-through-a-custom-app/m-p/753147#M23086</guid>
      <dc:creator>antoniomarongiu</dc:creator>
      <dc:date>2025-09-16T14:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HF not forward all data through a custom app</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-HF-not-forward-all-data-through-a-custom-app/m-p/753189#M23095</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/310852"&gt;@antoniomarongiu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Why would events with index=&lt;STRONG&gt;customers_index&lt;/STRONG&gt;&amp;nbsp;not always match the transforms.conf rule?&lt;BR /&gt;Answer - I suspect it could be that some of the data arriving in your HF has already been parsed and thus is not parsed again when it reaches this HF. You might be able to achieve this with RULESETS.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is it possible that _MetaData:Index is not always available on the Heavy Forwarder if events are already cooked?&lt;BR /&gt;Answer - Exactly this, if the events are already cooked/parsed then they wont go through the parsing process again here and the events wont be routed as you are expecting.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;What is the best practice to ensure all events with index=&lt;STRONG&gt;customers_index&lt;/STRONG&gt;&amp;nbsp;are also forwarded to the extra Heavy Forwarders?&lt;BR /&gt;Answer - you either need to receive the data only from the local HF, from UFs sending into the HF, OR look into using a RULESET.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Ruleset example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# props.conf
[default] 
RULESET-routeData = routeCustomerData

# transforms.conf
[routeCustomerData]
INGEST_EVAL = _TCP_ROUTING=IF(index=="customer_index", "my_peers_nodes,customers_to_tel",_TCP_ROUTING)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 21:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-HF-not-forward-all-data-through-a-custom-app/m-p/753189#M23095</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-09-16T21:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HF not forward all data through a custom app</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-HF-not-forward-all-data-through-a-custom-app/m-p/753273#M23108</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you're right, data was previosly parsed by UF&amp;nbsp; trough a custom application&amp;nbsp; using the following:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;props.conf&lt;BR /&gt;[cyber_audit] &amp;lt;&amp;lt;-- sourcetype&lt;BR /&gt;INDEXED_EXTRACTIONS = CSV&lt;BR /&gt;HEADER_FIELD_LINE_NUMBER = 1&lt;BR /&gt;FIELD_DELIMITER = \t&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;inputs.conf&lt;BR /&gt;[monitor:///home/cyber/log_applicativi/log_applicativi.*]&lt;BR /&gt;sourcetype = cyber_audit&lt;BR /&gt;disabled = false&lt;BR /&gt;index = &lt;STRONG&gt;customers_index&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after removing props.conf contents the logs are now forwarded to my_peer_nodes and&amp;nbsp;&amp;nbsp;customers_to_tel but without fields extraction as expected.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 13:25:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-HF-not-forward-all-data-through-a-custom-app/m-p/753273#M23108</guid>
      <dc:creator>antoniomarongiu</dc:creator>
      <dc:date>2025-09-18T13:25:29Z</dc:date>
    </item>
  </channel>
</rss>

