<?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: Counting Specific Events Type? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Counting-Specific-Events-Type/m-p/244987#M73003</link>
    <description>&lt;P&gt;Hi asarran,&lt;BR /&gt;
try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search direction=* | stats count by Direction
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or if you want a Time distribution&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search direction=* | timechart count by Direction
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2016 08:46:43 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2016-11-23T08:46:43Z</dc:date>
    <item>
      <title>Counting Specific Events Type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-Specific-Events-Type/m-p/244982#M72998</link>
      <description>&lt;P&gt;Good Morning, Fellow Splunkers&lt;/P&gt;

&lt;P&gt;I have a field extraction that outputs four possible values [Example]:&lt;/P&gt;

&lt;P&gt;Field Extraction: [Direction]&lt;/P&gt;

&lt;P&gt;[North]&lt;BR /&gt;
[South]&lt;BR /&gt;
[East]&lt;BR /&gt;
[West]&lt;/P&gt;

&lt;P&gt;I would like to count each of event within a period of time. &lt;/P&gt;

&lt;P&gt;I'm thinking:&lt;/P&gt;

&lt;P&gt;index=xxxx host=xxxx Direction="*"| Stat Count ("North" "South" "East" "West") &lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 16:18:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-Specific-Events-Type/m-p/244982#M72998</guid>
      <dc:creator>asarran</dc:creator>
      <dc:date>2016-11-22T16:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Specific Events Type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-Specific-Events-Type/m-p/244983#M72999</link>
      <description>&lt;P&gt;index=xxxx host=xxxx Direction="North" OR Direction="South"  OR Direction="East" OR Direction="West"  | stats Count by Direction&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 16:29:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-Specific-Events-Type/m-p/244983#M72999</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-11-22T16:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Specific Events Type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-Specific-Events-Type/m-p/244984#M73000</link>
      <description>&lt;P&gt;Try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearch | stats count(eval(match(Direction,"North")) AS count_N count(eval(match(Direction,"South")) AS count_S count(eval(match(Direction,"East")) AS count_E count(eval(match(Direction,"West")) AS count_W
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This way Splunk "evals" if the field Direction contains North and counts that.&lt;/P&gt;

&lt;P&gt;HTH.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 16:34:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-Specific-Events-Type/m-p/244984#M73000</guid>
      <dc:creator>Raschko</dc:creator>
      <dc:date>2016-11-22T16:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Specific Events Type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-Specific-Events-Type/m-p/244985#M73001</link>
      <description>&lt;P&gt;| stats count by Direction&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 22:57:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-Specific-Events-Type/m-p/244985#M73001</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2016-11-22T22:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Specific Events Type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-Specific-Events-Type/m-p/244986#M73002</link>
      <description>&lt;P&gt;Corrected the same &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 03:12:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-Specific-Events-Type/m-p/244986#M73002</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-11-23T03:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Specific Events Type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-Specific-Events-Type/m-p/244987#M73003</link>
      <description>&lt;P&gt;Hi asarran,&lt;BR /&gt;
try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search direction=* | stats count by Direction
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or if you want a Time distribution&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search direction=* | timechart count by Direction
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 08:46:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-Specific-Events-Type/m-p/244987#M73003</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-23T08:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Specific Events Type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-Specific-Events-Type/m-p/244988#M73004</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats count BY Direction
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 Mar 2017 21:16:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-Specific-Events-Type/m-p/244988#M73004</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-11T21:16:37Z</dc:date>
    </item>
  </channel>
</rss>

