<?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 Using stats command to return 0 value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-stats-command-to-return-0-value/m-p/580266#M202185</link>
    <description>&lt;P&gt;Hi There:&lt;/P&gt;&lt;P&gt;I'm trying to return the list of access_users with 0 web hits from the web_hits table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i adjust this query to return the list of users with no hits from the web_hits table?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| inputlookup web_hits.csv&lt;BR /&gt;&lt;BR /&gt;| lookup local=t access_users.csv user OUTPUT user as access_user&lt;BR /&gt;&lt;BR /&gt;| search&amp;nbsp;access_user="*"&lt;BR /&gt;&lt;BR /&gt;| stats count as num_webhits by access_user&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2022 14:07:36 GMT</pubDate>
    <dc:creator>mdeterville</dc:creator>
    <dc:date>2022-01-07T14:07:36Z</dc:date>
    <item>
      <title>Using stats command to return 0 value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-stats-command-to-return-0-value/m-p/580266#M202185</link>
      <description>&lt;P&gt;Hi There:&lt;/P&gt;&lt;P&gt;I'm trying to return the list of access_users with 0 web hits from the web_hits table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i adjust this query to return the list of users with no hits from the web_hits table?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| inputlookup web_hits.csv&lt;BR /&gt;&lt;BR /&gt;| lookup local=t access_users.csv user OUTPUT user as access_user&lt;BR /&gt;&lt;BR /&gt;| search&amp;nbsp;access_user="*"&lt;BR /&gt;&lt;BR /&gt;| stats count as num_webhits by access_user&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 14:07:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-stats-command-to-return-0-value/m-p/580266#M202185</guid>
      <dc:creator>mdeterville</dc:creator>
      <dc:date>2022-01-07T14:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using stats command to return 0 value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-stats-command-to-return-0-value/m-p/580267#M202186</link>
      <description>&lt;P&gt;Maybe these answers helps you:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-get-stats-count-to-include-zero-count/m-p/403201" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-get-stats-count-to-include-zero-count/m-p/403201&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-get-stats-count-to-include-zero-count-by-time/m-p/513537" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-get-stats-count-to-include-zero-count-by-time/m-p/513537&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-show-a-count-of-quot-0-quot-for-hosts-with-no-events-in/m-p/233578" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-show-a-count-of-quot-0-quot-for-hosts-with-no-events-in/m-p/233578&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;More with&amp;nbsp;&lt;A href="https://www.google.com/search?client=safari&amp;amp;rls=en&amp;amp;q=site%3Acommunity.splunk.com+How+to+include+counts+with+0+events&amp;amp;ie=UTF-8&amp;amp;oe=UTF-8" target="_blank"&gt;site:community.splunk.com How to include counts with 0 events&lt;/A&gt;&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 14:18:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-stats-command-to-return-0-value/m-p/580267#M202186</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-01-07T14:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using stats command to return 0 value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-stats-command-to-return-0-value/m-p/580268#M202187</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command can't count what isn't there so you won't get a zero.&amp;nbsp; This query returns those access_users that are not in the web_hits table.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup local=t access_users.csv where NOT [| inputlookup web_hits.csv | fields user | rename user as access_user | format ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 14:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-stats-command-to-return-0-value/m-p/580268#M202187</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-01-07T14:29:07Z</dc:date>
    </item>
  </channel>
</rss>

