<?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: Confusion with count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Confusion-with-count/m-p/472100#M132831</link>
    <description>&lt;P&gt;Thank You. It worked&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2019 16:23:29 GMT</pubDate>
    <dc:creator>palisetty</dc:creator>
    <dc:date>2019-12-23T16:23:29Z</dc:date>
    <item>
      <title>Confusion with count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Confusion-with-count/m-p/472098#M132829</link>
      <description>&lt;P&gt;I have a source with 100,000 events. For an Interesting field "action" where it has value as "purchase" with a count of 21,000. I want to make use of stats command with count function to see the count of events in my event list.&lt;BR /&gt;
I tried this but it is not accepting.&lt;/P&gt;

&lt;P&gt;index="main"&lt;BR /&gt;
| stats count(action) =" purchase" as "Total count of Purchase occurences"&lt;/P&gt;

&lt;P&gt;What is the correct syntax, please?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 16:13:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Confusion-with-count/m-p/472098#M132829</guid>
      <dc:creator>palisetty</dc:creator>
      <dc:date>2019-12-23T16:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion with count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Confusion-with-count/m-p/472099#M132830</link>
      <description>&lt;P&gt;@palisetty &lt;/P&gt;

&lt;P&gt;Try this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="main" | stats count(eval(action="purchase")) as "Total count of Purchase occurences"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Dec 2019 16:19:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Confusion-with-count/m-p/472099#M132830</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-12-23T16:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion with count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Confusion-with-count/m-p/472100#M132831</link>
      <description>&lt;P&gt;Thank You. It worked&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 16:23:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Confusion-with-count/m-p/472100#M132831</guid>
      <dc:creator>palisetty</dc:creator>
      <dc:date>2019-12-23T16:23:29Z</dc:date>
    </item>
  </channel>
</rss>

