<?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: How to count numbers of records per category from a table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-numbers-of-records-per-category-from-a-table/m-p/272440#M82018</link>
    <description>&lt;P&gt;wow, thank you very much for your help!!!&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2016 20:12:32 GMT</pubDate>
    <dc:creator>splunkrocks2014</dc:creator>
    <dc:date>2016-10-25T20:12:32Z</dc:date>
    <item>
      <title>How to count numbers of records per category from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-numbers-of-records-per-category-from-a-table/m-p/272438#M82016</link>
      <description>&lt;P&gt;Hi.  I have a search result returned as the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;name   type   col_1   col_2   col3
====   ====   =====   =====   =====
N1     T1      A        A       C
N1     T2      A        B       D
N2     T1      D        D       C
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How to count numbers of "A", "B", "C", and "D"?  For example, the result looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;new_field    count
=========    =====
A             2
B             1
C             2
D             3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any helps are great appreciated.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 19:56:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-numbers-of-records-per-category-from-a-table/m-p/272438#M82016</guid>
      <dc:creator>splunkrocks2014</dc:creator>
      <dc:date>2016-10-25T19:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to count numbers of records per category from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-numbers-of-records-per-category-from-a-table/m-p/272439#M82017</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search | fields - type | untable name fields values | stats count by values
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Oct 2016 20:03:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-numbers-of-records-per-category-from-a-table/m-p/272439#M82017</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-25T20:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to count numbers of records per category from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-numbers-of-records-per-category-from-a-table/m-p/272440#M82018</link>
      <description>&lt;P&gt;wow, thank you very much for your help!!!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 20:12:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-numbers-of-records-per-category-from-a-table/m-p/272440#M82018</guid>
      <dc:creator>splunkrocks2014</dc:creator>
      <dc:date>2016-10-25T20:12:32Z</dc:date>
    </item>
  </channel>
</rss>

