<?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: Count field on specific value using streamstats in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Count-field-on-specific-value-using-streamstats/m-p/543804#M154043</link>
    <description>&lt;P&gt;Do you need to get a streaming count or a total count&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| streamstats sum(eval(if(Flag=0,1,0))) as Results_0&lt;/LI-CODE&gt;&lt;P&gt;You can use streamstats where Results_0 will be a new field added to each row, or if you just want to get a single count of the total where Flag=0, use stats, not streamstats.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 10:01:05 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2021-03-15T10:01:05Z</dc:date>
    <item>
      <title>Count field on specific value using streamstats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-field-on-specific-value-using-streamstats/m-p/543802#M154042</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can help, I need to count field Flag where value is 0.&lt;/P&gt;&lt;P&gt;I've tried using this command " streamstats count(Flag=0) as Results_0 | table Results_0"&lt;/P&gt;&lt;P&gt;But the table is blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 09:51:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-field-on-specific-value-using-streamstats/m-p/543802#M154042</guid>
      <dc:creator>bernanda</dc:creator>
      <dc:date>2021-03-15T09:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count field on specific value using streamstats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-field-on-specific-value-using-streamstats/m-p/543804#M154043</link>
      <description>&lt;P&gt;Do you need to get a streaming count or a total count&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| streamstats sum(eval(if(Flag=0,1,0))) as Results_0&lt;/LI-CODE&gt;&lt;P&gt;You can use streamstats where Results_0 will be a new field added to each row, or if you just want to get a single count of the total where Flag=0, use stats, not streamstats.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 10:01:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-field-on-specific-value-using-streamstats/m-p/543804#M154043</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-03-15T10:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count field on specific value using streamstats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-field-on-specific-value-using-streamstats/m-p/543810#M154045</link>
      <description>&lt;P&gt;Thanks, it works&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 10:10:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-field-on-specific-value-using-streamstats/m-p/543810#M154045</guid>
      <dc:creator>bernanda</dc:creator>
      <dc:date>2021-03-15T10:10:33Z</dc:date>
    </item>
  </channel>
</rss>

