<?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 do a stats count and generate all of the fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-do-a-stats-count-and-generate-all-of-the-fields/m-p/291949#M160475</link>
    <description>&lt;P&gt;Switch to &lt;CODE&gt;eventstats&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="sourcenamet" search string | eventstats count by field1 | where count&amp;lt;2 | table field1 field 2 field3 field4
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Jun 2017 20:46:19 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-06-29T20:46:19Z</dc:date>
    <item>
      <title>how to do a stats count and generate all of the fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-do-a-stats-count-and-generate-all-of-the-fields/m-p/291948#M160474</link>
      <description>&lt;P&gt;I'm trying to do a stats command to find a count of any value less than 2 counts and display all the other fields.  I only want a stats count on one field, but I want to display all the field that is generated with that stats count result.&lt;/P&gt;

&lt;P&gt;This is my search query&lt;BR /&gt;
sourcetype="sourcenamet"  search string | stats count by field1 | where count&amp;lt;2 | | table   field1 field 2 field3 field4&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 20:24:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-do-a-stats-count-and-generate-all-of-the-fields/m-p/291948#M160474</guid>
      <dc:creator>mrtolu6</dc:creator>
      <dc:date>2017-06-29T20:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to do a stats count and generate all of the fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-do-a-stats-count-and-generate-all-of-the-fields/m-p/291949#M160475</link>
      <description>&lt;P&gt;Switch to &lt;CODE&gt;eventstats&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="sourcenamet" search string | eventstats count by field1 | where count&amp;lt;2 | table field1 field 2 field3 field4
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Jun 2017 20:46:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-do-a-stats-count-and-generate-all-of-the-fields/m-p/291949#M160475</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-29T20:46:19Z</dc:date>
    </item>
  </channel>
</rss>

