<?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 How to search and table count for multiple fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-table-count-for-multiple-fields/m-p/198553#M57412</link>
    <description>&lt;P&gt;Can anyone help me making this table?&lt;BR /&gt;
I have the field Status, wich has events Status=1, Status=2, Status=3.&lt;BR /&gt;
I need to count events for each and make a table for each, example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Channel | Total Status = 1 | Total Status = 2 | Total Status = 3

Channel A
Channel B
Channel C
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is my current query:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;CODE&gt;index=main sourcetype=control | stats count, values(Status) as Status by STATUS | table Channel, count&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Aug 2014 17:24:27 GMT</pubDate>
    <dc:creator>vtsguerrero</dc:creator>
    <dc:date>2014-08-29T17:24:27Z</dc:date>
    <item>
      <title>How to search and table count for multiple fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-table-count-for-multiple-fields/m-p/198553#M57412</link>
      <description>&lt;P&gt;Can anyone help me making this table?&lt;BR /&gt;
I have the field Status, wich has events Status=1, Status=2, Status=3.&lt;BR /&gt;
I need to count events for each and make a table for each, example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Channel | Total Status = 1 | Total Status = 2 | Total Status = 3

Channel A
Channel B
Channel C
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is my current query:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;CODE&gt;index=main sourcetype=control | stats count, values(Status) as Status by STATUS | table Channel, count&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2014 17:24:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-table-count-for-multiple-fields/m-p/198553#M57412</guid>
      <dc:creator>vtsguerrero</dc:creator>
      <dc:date>2014-08-29T17:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to search and table count for multiple fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-table-count-for-multiple-fields/m-p/198554#M57413</link>
      <description>&lt;P&gt;I forgot to mention that this table should also show per Channel for each line :X&lt;BR /&gt;
What's the easiest way I can do this?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2014 18:02:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-table-count-for-multiple-fields/m-p/198554#M57413</guid>
      <dc:creator>vtsguerrero</dc:creator>
      <dc:date>2014-08-29T18:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to search and table count for multiple fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-table-count-for-multiple-fields/m-p/198555#M57414</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=main sourcetype=control | chart count over Channel by STATUS
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2014 18:28:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-table-count-for-multiple-fields/m-p/198555#M57414</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-08-29T18:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to search and table count for multiple fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-table-count-for-multiple-fields/m-p/198556#M57415</link>
      <description>&lt;P&gt;Thanks a lot Ayn! Solved my problems! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2014 18:37:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-table-count-for-multiple-fields/m-p/198556#M57415</guid>
      <dc:creator>vtsguerrero</dc:creator>
      <dc:date>2014-08-29T18:37:57Z</dc:date>
    </item>
  </channel>
</rss>

