<?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 do you get all matching and non-matching rows from a Splunk search and lookup? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-all-matching-and-non-matching-rows-from-a-Splunk/m-p/449222#M127216</link>
    <description>&lt;P&gt;That is perfect Chris. Thank you very much. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Feb 2019 11:55:35 GMT</pubDate>
    <dc:creator>Shashank_87</dc:creator>
    <dc:date>2019-02-08T11:55:35Z</dc:date>
    <item>
      <title>How do you get all matching and non-matching rows from a Splunk search and lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-all-matching-and-non-matching-rows-from-a-Splunk/m-p/449219#M127213</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I am working on a query where I have to match the responseCode from the search to the responseCode in a lookup I created. That lookup contains the responseCode and its description.&lt;/P&gt;

&lt;P&gt;Now there are a few cases where the responseCode in the search does not match to anything in the lookup table. I want the count of all responseCodes. If it matches in the lookup then with its description,  and if it doesn't match, then the description would be null, but I want the count. &lt;/P&gt;

&lt;P&gt;My current search is not giving the count of the unmatched responseCode —&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="test" sourcetype="test_log" 
| dedup time,host,source,_raw 
| lookup Response_Codes_Desc ResponseCode
| stats count by ResponseCode Description
| sort - count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please could someone help on this?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 11:24:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-all-matching-and-non-matching-rows-from-a-Splunk/m-p/449219#M127213</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2019-02-08T11:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get all matching and non-matching rows from a Splunk search and lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-all-matching-and-non-matching-rows-from-a-Splunk/m-p/449220#M127214</link>
      <description>&lt;P&gt;what about this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="test" sourcetype="test_log" 
| dedup time,host,source,_raw 
| lookup Response_Codes_Desc ResponseCode
| eval Description = coalesce(Description, "")
| stats count by ResponseCode Description
| sort - count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Feb 2019 11:41:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-all-matching-and-non-matching-rows-from-a-Splunk/m-p/449220#M127214</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-02-08T11:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get all matching and non-matching rows from a Splunk search and lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-all-matching-and-non-matching-rows-from-a-Splunk/m-p/449221#M127215</link>
      <description>&lt;P&gt;Check if this helps:&lt;BR /&gt;
index="test" sourcetype="test_log" &lt;BR /&gt;
| dedup time,host,source,_raw &lt;BR /&gt;
| lookup Response_Codes_Desc ResponseCode&lt;BR /&gt;
| eval NoMatch = if(isnull(Description), 1, 0)&lt;BR /&gt;
| eventstats sum(NoMatch) as NoMatch, sum(eval(if(NoMatch = 0, 1, 0))) as MatchAvailable &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:07:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-all-matching-and-non-matching-rows-from-a-Splunk/m-p/449221#M127215</guid>
      <dc:creator>jvishwak</dc:creator>
      <dc:date>2020-09-29T23:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get all matching and non-matching rows from a Splunk search and lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-all-matching-and-non-matching-rows-from-a-Splunk/m-p/449222#M127216</link>
      <description>&lt;P&gt;That is perfect Chris. Thank you very much. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 11:55:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-all-matching-and-non-matching-rows-from-a-Splunk/m-p/449222#M127216</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2019-02-08T11:55:35Z</dc:date>
    </item>
  </channel>
</rss>

