<?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 exclude counts (stats count by) with a flat table format? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-counts-stats-count-by-with-a-flat-table-format/m-p/191881#M55217</link>
    <description>&lt;P&gt;@Strive answer should do the task for you. &lt;/P&gt;

&lt;P&gt;Alternatively try this&lt;/P&gt;

&lt;P&gt;index=foo [ search index=foo | stats count by Product | where count &amp;lt; 21 | table Product]| table name product publisher version&lt;/P&gt;</description>
    <pubDate>Fri, 22 Aug 2014 21:08:18 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-08-22T21:08:18Z</dc:date>
    <item>
      <title>How to exclude counts (stats count by) with a flat table format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-counts-stats-count-by-with-a-flat-table-format/m-p/191879#M55215</link>
      <description>&lt;P&gt;Weird one.  I have a query that requires a flat format output with table;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo | table name product publisher version
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The output is such;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;name1 product1 publisher1 version1
name1 product2 publisher2 version2
name1 product3 publisher3 version3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The data is a list of applications installed on a machine.&lt;/P&gt;

&lt;P&gt;I want to exclude products where the total count is under 21.  However I still need the flat table format above.  The expanded name column/field.  I can't seem to figure out how to both exclude products with a total count over 21, while still presenting the flat table view.&lt;/P&gt;

&lt;P&gt;I CAN list the applications under 21 and filter in search, but there are 45000+ records for that and Chrome can't seem to handle it.  Nor is that efficient in any way.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;I want these products excluded, but retain the flat table with expanded name;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo | stats count by Product | where count &amp;lt; 21
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2014 15:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-counts-stats-count-by-with-a-flat-table-format/m-p/191879#M55215</guid>
      <dc:creator>mcrawford44</dc:creator>
      <dc:date>2014-08-22T15:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude counts (stats count by) with a flat table format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-counts-stats-count-by-with-a-flat-table-format/m-p/191880#M55216</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your search for flat table ... | eventstats count as Count by name | where Count &amp;gt; 21 | fields - Count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you need based on product field&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your search for flat table ... | eventstats count as Count by product | where Count &amp;gt; 21 | fields - Count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Aug 2014 15:59:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-counts-stats-count-by-with-a-flat-table-format/m-p/191880#M55216</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-08-22T15:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude counts (stats count by) with a flat table format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-counts-stats-count-by-with-a-flat-table-format/m-p/191881#M55217</link>
      <description>&lt;P&gt;@Strive answer should do the task for you. &lt;/P&gt;

&lt;P&gt;Alternatively try this&lt;/P&gt;

&lt;P&gt;index=foo [ search index=foo | stats count by Product | where count &amp;lt; 21 | table Product]| table name product publisher version&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2014 21:08:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-counts-stats-count-by-with-a-flat-table-format/m-p/191881#M55217</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-22T21:08:18Z</dc:date>
    </item>
  </channel>
</rss>

