<?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: Route and filter data from HEC in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-and-filter-data-from-HEC/m-p/597411#M104304</link>
    <description>&lt;P&gt;The configuration provided in the link should be the way to go. Just make sure that you chose appropriate source ([source::YourSource]) OR sourcetype in props.conf.&lt;/P&gt;&lt;P&gt;Another example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/How-to-route-and-filter-data-on-the-Heavy-Forwarder-to-separate/m-p/216971" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/How-to-route-and-filter-data-on-the-Heavy-Forwarder-to-separate/m-p/216971&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2022 14:11:41 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2022-05-11T14:11:41Z</dc:date>
    <item>
      <title>How to route and filter data from HEC?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-and-filter-data-from-HEC/m-p/597398#M104300</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;
&lt;P&gt;I have the need to filter data based on a specific field value and route to a different group of indexers.&lt;/P&gt;
&lt;P&gt;Data is coming through HEC configured on a Heavy Forwarder like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[http://tokenName]
index = main
indexes = main
outputgroup = my_indexers
sourcetype = _json
token = &amp;lt;string&amp;gt;
source = mysource&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like to use props.conf and transforms.conf as suggested &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.6/Forwarding/Routeandfilterdatad#Filter_and_route_event_data_to_target_groups" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;props.conf
[source::mysource]
TRANSFORMS-routing=otherIndexersRouting

transforms.conf
[otherIndexersRouting]
REGEX=\"domain\"\:\s\"CARD\"
DEST_KEY=_TCP_ROUTING
FORMAT=other_indexers&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In outputs.conf I'd add the stanza [tcpOut:other_indexers]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this possible? Is there another way to achieve this goal?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;Marta&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 15:41:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-and-filter-data-from-HEC/m-p/597398#M104300</guid>
      <dc:creator>martaBenedetti</dc:creator>
      <dc:date>2022-05-11T15:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Route and filter data from HEC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-and-filter-data-from-HEC/m-p/597409#M104303</link>
      <description>&lt;P&gt;Close.&lt;/P&gt;&lt;P&gt;You need to specify the stanza in props.conf as&lt;/P&gt;&lt;PRE&gt;[source::mysource]&lt;/PRE&gt;&lt;P&gt;Then you can call appropriate transforms from there.&lt;/P&gt;&lt;P&gt;Keep in mind though that the hierarchy is source-&amp;gt;host-&amp;gt;sourcetype so if you have - for example - your host field overwritten based on data from the raw event in a transform called from sourcetype-based stanza, you won't be able to use this host value as selector.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 14:07:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-and-filter-data-from-HEC/m-p/597409#M104303</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-05-11T14:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Route and filter data from HEC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-and-filter-data-from-HEC/m-p/597411#M104304</link>
      <description>&lt;P&gt;The configuration provided in the link should be the way to go. Just make sure that you chose appropriate source ([source::YourSource]) OR sourcetype in props.conf.&lt;/P&gt;&lt;P&gt;Another example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/How-to-route-and-filter-data-on-the-Heavy-Forwarder-to-separate/m-p/216971" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/How-to-route-and-filter-data-on-the-Heavy-Forwarder-to-separate/m-p/216971&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 14:11:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-and-filter-data-from-HEC/m-p/597411#M104304</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-05-11T14:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Route and filter data from HEC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-and-filter-data-from-HEC/m-p/597415#M104306</link>
      <description>&lt;P&gt;I was afraid the solution couldn't work with HTTP event collector since I've only used this configuration with classic monitor inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The source stanza was just a typo, I've corrected it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Marta&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 14:25:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-and-filter-data-from-HEC/m-p/597415#M104306</guid>
      <dc:creator>martaBenedetti</dc:creator>
      <dc:date>2022-05-11T14:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Route and filter data from HEC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-and-filter-data-from-HEC/m-p/597417#M104307</link>
      <description>&lt;P&gt;The source stanza was just a typo, I've corrected it&lt;SPAN&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Marta&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 14:25:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-and-filter-data-from-HEC/m-p/597417#M104307</guid>
      <dc:creator>martaBenedetti</dc:creator>
      <dc:date>2022-05-11T14:25:52Z</dc:date>
    </item>
  </channel>
</rss>

