<?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: Subsearch Help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Help/m-p/229010#M67789</link>
    <description>&lt;P&gt;WHat do you get when you run this command?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host= source= "Incorrect result:" | rex field=_raw "\x5BE=(?P&amp;lt;ID&amp;gt;[0123456789]+)\x5D" | rex field=_raw "(?&amp;lt;status&amp;gt;Sending|Incorrect)\s*result" | table _time ID status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also noticed, the first rex command was missing the field name. See the edited one&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2016 14:24:55 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-06-24T14:24:55Z</dc:date>
    <item>
      <title>Subsearch Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Help/m-p/229006#M67785</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I'm trying to create a search query that displays all the events with &lt;CODE&gt;Incorrect result:&lt;/CODE&gt; but excludes the cases where the same ID contains an event with &lt;CODE&gt;Sending result&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;The query below shows the list of all the problem cases:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=* source=*  "Incorrect result:" | rex field=_raw "\x5BE=(?P[0123456789]+)\x5D"  | stats count by ID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How would I write a search query to do this?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 14:05:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-Help/m-p/229006#M67785</guid>
      <dc:creator>alan20854</dc:creator>
      <dc:date>2016-06-24T14:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Help/m-p/229007#M67786</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host= source= "Incorrect result:" | rex field=_raw "\x5BE=(?P&amp;lt;ID&amp;gt;[0123456789]+)\x5D" | rex field=_raw "(?&amp;lt;status&amp;gt;Sending|Incorrect)\s*result" | chart count over ID by status | where Sending=0 | fields - Sending
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jun 2016 14:16:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-Help/m-p/229007#M67786</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-24T14:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Help/m-p/229008#M67787</link>
      <description>&lt;P&gt;Hi sundareshr, I am not getting any events from that query&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 14:20:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-Help/m-p/229008#M67787</guid>
      <dc:creator>alan20854</dc:creator>
      <dc:date>2016-06-24T14:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Help/m-p/229009#M67788</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ihost=* source=* ("Incorrect result:" OR "Sending result") | rex field=_raw "\x5BE=(?P[0123456789]+)\x5D"|
| eventstats count(eval(searchmatch("Incorrect result:"))) AS badCount count(eval(searchmatch("Sending result"))) AS goodCount BY ID
| where goodCount=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jun 2016 14:23:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-Help/m-p/229009#M67788</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-06-24T14:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-Help/m-p/229010#M67789</link>
      <description>&lt;P&gt;WHat do you get when you run this command?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host= source= "Incorrect result:" | rex field=_raw "\x5BE=(?P&amp;lt;ID&amp;gt;[0123456789]+)\x5D" | rex field=_raw "(?&amp;lt;status&amp;gt;Sending|Incorrect)\s*result" | table _time ID status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also noticed, the first rex command was missing the field name. See the edited one&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 14:24:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-Help/m-p/229010#M67789</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-24T14:24:55Z</dc:date>
    </item>
  </channel>
</rss>

