<?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: want 0 count if keyword does not match in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/want-0-count-if-keyword-does-not-match/m-p/105373#M183215</link>
    <description>&lt;P&gt;Many Many thanks sdaniels for this , this really helped me a lot, I appreciate your help for this and hope to get  same assistance in future also. Once again very very thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Oct 2012 18:25:58 GMT</pubDate>
    <dc:creator>abhayneilam</dc:creator>
    <dc:date>2012-10-29T18:25:58Z</dc:date>
    <item>
      <title>want 0 count if keyword does not match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/want-0-count-if-keyword-does-not-match/m-p/105371#M183213</link>
      <description>&lt;P&gt;index="usb_weekly_data" |rex field="src_file_name" (?&lt;KEY_WORD&gt;(?i)"presentation") | stats count as First by key_word&lt;/KEY_WORD&gt;&lt;/P&gt;

&lt;P&gt;above query returns me :&lt;/P&gt;

&lt;P&gt;presentation  47&lt;/P&gt;

&lt;P&gt;but if I change the keyword to "halla" then it is not matching in the "src_field_name" field, then it should give me 0 as an output like :&lt;/P&gt;

&lt;P&gt;halla   0  &lt;/P&gt;

&lt;P&gt;Please help me to get this type of 0 output for non-matching keywords !!&lt;/P&gt;

&lt;P&gt;Please  help me this time, I have been searching for the solution , but didnt get yet !!&lt;/P&gt;

&lt;P&gt;Your help would be highly appreciated !!&lt;/P&gt;

&lt;P&gt;Thanks in Advance &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:42:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/want-0-count-if-keyword-does-not-match/m-p/105371#M183213</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2020-09-28T12:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: want 0 count if keyword does not match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/want-0-count-if-keyword-does-not-match/m-p/105372#M183214</link>
      <description>&lt;P&gt;This previous answer may help so that you can represent no results found as a 0:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/59589/no-results-found-to-be-represented-as-null-or-0"&gt;http://splunk-base.splunk.com/answers/59589/no-results-found-to-be-represented-as-null-or-0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2012 12:53:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/want-0-count-if-keyword-does-not-match/m-p/105372#M183214</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-10-29T12:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: want 0 count if keyword does not match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/want-0-count-if-keyword-does-not-match/m-p/105373#M183215</link>
      <description>&lt;P&gt;Many Many thanks sdaniels for this , this really helped me a lot, I appreciate your help for this and hope to get  same assistance in future also. Once again very very thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2012 18:25:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/want-0-count-if-keyword-does-not-match/m-p/105373#M183215</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2012-10-29T18:25:58Z</dc:date>
    </item>
  </channel>
</rss>

