<?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 Selective forwarding in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547579#M155280</link>
    <description>&lt;P&gt;Hey all. I need help to selective forward (on a HF) from a log file that is being monitored by a UF. I only need to forward lines that contain the exact words "Read line". I've tried the below confs but the HF is still forwarding all lines that are written to the log.&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[dcs_event]
TRANSFORMS-routing = dcs_allow,dcs_drop&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[dcs_allow]
DEST_KEY = queue
REGEX = (Read line)
FORMAT = indexQueue

[dcs_drop]
DEST_KEY = queue
REGEX = .
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 10:19:38 GMT</pubDate>
    <dc:creator>Adevill</dc:creator>
    <dc:date>2021-04-12T10:19:38Z</dc:date>
    <item>
      <title>Heavy Forwarder Selective forwarding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547579#M155280</link>
      <description>&lt;P&gt;Hey all. I need help to selective forward (on a HF) from a log file that is being monitored by a UF. I only need to forward lines that contain the exact words "Read line". I've tried the below confs but the HF is still forwarding all lines that are written to the log.&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[dcs_event]
TRANSFORMS-routing = dcs_allow,dcs_drop&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[dcs_allow]
DEST_KEY = queue
REGEX = (Read line)
FORMAT = indexQueue

[dcs_drop]
DEST_KEY = queue
REGEX = .
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 10:19:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547579#M155280</guid>
      <dc:creator>Adevill</dc:creator>
      <dc:date>2021-04-12T10:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder Selective forwarding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547580#M155281</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232600"&gt;@Adevill&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please try inverting the commands in props.conf&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[dcs_event]
TRANSFORMS-routing = dcs_drop, dcs_allow&lt;/LI-CODE&gt;&lt;P&gt;You have to put before the one containing all the logs (dcs_drop) and then the one to take the selected logs (dcs_allow) as described at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.3/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.3/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the problem is only on props.conf, instead it isn't relevant in transforms.conf.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 10:25:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547580#M155281</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-04-12T10:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder Selective forwarding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547584#M155282</link>
      <description>&lt;P&gt;Ciao Giuseppe&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've made the change you indicated but all the lines are still being forwarded. Any other advice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 10:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547584#M155282</guid>
      <dc:creator>Adevill</dc:creator>
      <dc:date>2021-04-12T10:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder Selective forwarding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547585#M155283</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232600"&gt;@Adevill&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;you inverted the positions in props.conf command,&lt;/LI&gt;&lt;LI&gt;you restarted HF,&lt;/LI&gt;&lt;LI&gt;you continue to receive all the lines from the HF;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;is it correct?&lt;/P&gt;&lt;P&gt;One quick question: you have a multi line event or a single line event?&lt;/P&gt;&lt;P&gt;The above approach is correct in single lines events, if instead you have a multi line events and you want to take only a part of the event, it's different.&lt;/P&gt;&lt;P&gt;Could you share a sample of your logs (both lines to take and likes to discard)?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 10:44:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547585#M155283</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-04-12T10:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder Selective forwarding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547586#M155284</link>
      <description>&lt;P&gt;Ciao&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes you are correct with all 3 points. The log file is being written to continuously, so I'm not sure if that will be seen as a single or multline event. I've used the below link for testing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Regex101" href="https://regex101.com/r/3RmTnm/1" target="_blank" rel="noopener"&gt;https://regex101.com/r/3RmTnm/1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 10:48:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547586#M155284</guid>
      <dc:creator>Adevill</dc:creator>
      <dc:date>2021-04-12T10:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder Selective forwarding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547590#M155285</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232600"&gt;@Adevill&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;they seems to be single line events, so the configuration seem to be correct!&lt;/P&gt;&lt;P&gt;It shouldn't be useful, but, please try this regex in transforms.conf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;REGEX = \s+Read line:&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another stupid question: are you sure that those logs pass through the HF?&lt;/P&gt;&lt;P&gt;Try to put the same props.conf and transforms.conf also on Indexers.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 11:15:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547590#M155285</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-04-12T11:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder Selective forwarding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547594#M155287</link>
      <description>&lt;P&gt;Ciao&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried both your suggestions (change the regex and put the conf files at indexer) but all the lines are still being indexed. Any other suggestions I can try?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 11:33:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547594#M155287</guid>
      <dc:creator>Adevill</dc:creator>
      <dc:date>2021-04-12T11:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder Selective forwarding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547599#M155290</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232600"&gt;@Adevill&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;at this point, try the more strange things: are you sure that the sourcetype of your logs is "dcs_event"?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 11:59:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547599#M155290</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-04-12T11:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder Selective forwarding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547615#M155292</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I'm sure, I've also double checked it and the spelling of everything.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 13:28:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547615#M155292</guid>
      <dc:creator>Adevill</dc:creator>
      <dc:date>2021-04-12T13:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder Selective forwarding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547616#M155293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232600"&gt;@Adevill&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;could you share the inputs.conf on the UF that takes those logs?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 13:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547616#M155293</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-04-12T13:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder Selective forwarding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547617#M155294</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As requested:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor://C:\Program Files (x86)\ABB Symphony Plus\Operations\History\PlantConnect.SYS\Debug\PlaCoEventImporter\Administrator_PlaCoEventImporter.log]
disabled = 0
source = dcs
sourcetype = dcs_event&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 Apr 2021 13:41:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547617#M155294</guid>
      <dc:creator>Adevill</dc:creator>
      <dc:date>2021-04-12T13:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder Selective forwarding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547622#M155295</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232600"&gt;@Adevill&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;it's really strange because:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the sourcetype on UF's inputs.conf is correct (dcs_event);&lt;/LI&gt;&lt;LI&gt;the props.conf on HF is correct&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;[dcs_event]
TRANSFORMS-routing = dcs_drop, dcs_allow&lt;/LI-CODE&gt;&lt;UL&gt;&lt;LI&gt;you restarted HF after props.conf modification;&lt;/LI&gt;&lt;LI&gt;The regex in transforms.conf is correct (otherwise you discard all the events),&lt;/LI&gt;&lt;LI&gt;events pass through the HF so they should be parsed by HF.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The only hint I can give is check again the above chain: something could be different.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 14:02:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547622#M155295</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-04-12T14:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder Selective forwarding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547625#M155296</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp; ,thank you for all the assistance. I'll go back and check everything everything.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 14:29:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547625#M155296</guid>
      <dc:creator>Adevill</dc:creator>
      <dc:date>2021-04-12T14:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder Selective forwarding</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547627#M155297</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232600"&gt;@Adevill&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I'm sorry to be not able to help you more: it's really strange I did many of these condifugrations without any problem.&lt;/P&gt;&lt;P&gt;Check again every step and surely there's a little particular the will solve the problem.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 14:33:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-Selective-forwarding/m-p/547627#M155297</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-04-12T14:33:13Z</dc:date>
    </item>
  </channel>
</rss>

