<?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: how to exclude the subsearch result from main search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-exclude-the-subsearch-result-from-main-search/m-p/572581#M199562</link>
    <description>&lt;P&gt;You could try it with subsearch and exclusion (you'd need to enclose the subsearch in parentheses though) but it will be highly inefficient. If you can corelate on a particular field (and I can see you want to use PURCHASEID for this), use either selfjoin, transaction or even simple stats to group your events.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2021 06:02:59 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2021-10-27T06:02:59Z</dc:date>
    <item>
      <title>how to exclude the subsearch result from main search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-exclude-the-subsearch-result-from-main-search/m-p/572567#M199555</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;Can anyone tell me how to exclude the subsearch result from main search?&lt;BR /&gt;I want to exclude the result that failed at 1st attempt, but later the person purchased successfully.&lt;/P&gt;&lt;P&gt;I only want to capture PURCHASEID(s) that failed and has not been able to purchase yet.&lt;/P&gt;&lt;P&gt;Here's my p&lt;SPAN&gt;seudo code that I am trying to accomplish&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;index=main sourcetype="access_combined_wcookie" AND ("*TIME_OUT*")&lt;BR /&gt;| rex field=_raw "\[(?&amp;lt;PURCHASEID&amp;gt;\d{12}\-\d{3})\]"&lt;BR /&gt;| search NOT [ search index=main sourcetype="access_combined_wcookie" AND ("*Successfully Ordered*")"&lt;BR /&gt;| rex field=_raw "\[(?&amp;lt;PURCHASEID&amp;gt;\d{12}\-\d{3})\]" | table PURCHASEID]&lt;BR /&gt;| table PURCHASEID, _raw&lt;BR /&gt;| dedup PURCHASEID&lt;BR /&gt;| sort +PURCHASEID&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 01:37:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-exclude-the-subsearch-result-from-main-search/m-p/572567#M199555</guid>
      <dc:creator>ycho1</dc:creator>
      <dc:date>2021-10-27T01:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to exclude the subsearch result from main search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-exclude-the-subsearch-result-from-main-search/m-p/572581#M199562</link>
      <description>&lt;P&gt;You could try it with subsearch and exclusion (you'd need to enclose the subsearch in parentheses though) but it will be highly inefficient. If you can corelate on a particular field (and I can see you want to use PURCHASEID for this), use either selfjoin, transaction or even simple stats to group your events.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 06:02:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-exclude-the-subsearch-result-from-main-search/m-p/572581#M199562</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-27T06:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to exclude the subsearch result from main search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-exclude-the-subsearch-result-from-main-search/m-p/572659#M199593</link>
      <description>&lt;P&gt;Can you provide me a good example on how to write selfjoin or other solution with my intention if you are willing to help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 14:30:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-exclude-the-subsearch-result-from-main-search/m-p/572659#M199593</guid>
      <dc:creator>ycho1</dc:creator>
      <dc:date>2021-10-27T14:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to exclude the subsearch result from main search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-exclude-the-subsearch-result-from-main-search/m-p/572681#M199601</link>
      <description>Maybe this helps &lt;A href="https://conf.splunk.com/files/2019/slides/FNC2751.pdf" target="_blank"&gt;https://conf.splunk.com/files/2019/slides/FNC2751.pdf&lt;/A&gt;</description>
      <pubDate>Wed, 27 Oct 2021 15:36:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-exclude-the-subsearch-result-from-main-search/m-p/572681#M199601</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-10-27T15:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to exclude the subsearch result from main search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-exclude-the-subsearch-result-from-main-search/m-p/572862#M199647</link>
      <description>&lt;P&gt;Is there any other suggestion?&lt;/P&gt;&lt;P&gt;I have not made much progress on this,&amp;nbsp; I was looking for some examples with&amp;nbsp;&lt;SPAN&gt;selfjoin, transaction or stats commad, it won't go anywhere.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 18:08:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-exclude-the-subsearch-result-from-main-search/m-p/572862#M199647</guid>
      <dc:creator>ycho1</dc:creator>
      <dc:date>2021-10-28T18:08:23Z</dc:date>
    </item>
  </channel>
</rss>

