<?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: 'Stats count by' set to specific count? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Stats-count-by-set-to-specific-count/m-p/529966#M149714</link>
    <description>Small fix as &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228799"&gt;@bcjammer03&lt;/a&gt; asked "triggered twice" you should use "| where count = 2"</description>
    <pubDate>Wed, 18 Nov 2020 16:41:50 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2020-11-18T16:41:50Z</dc:date>
    <item>
      <title>'Stats count by' set to specific count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-count-by-set-to-specific-count/m-p/529943#M149707</link>
      <description>&lt;P&gt;I'm trying to create a query where I get results of a specific user triggering two of the same alerts. Is there a way to set 'stats count by' to equal 2, that results will show only users that have triggered this alert twice?&lt;/P&gt;&lt;P&gt;Or is there a specific command that will allow me to do this?&lt;/P&gt;&lt;P&gt;index=`email` action=blocked | stats count by user_ID&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 15:37:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-count-by-set-to-specific-count/m-p/529943#M149707</guid>
      <dc:creator>bcjammer03</dc:creator>
      <dc:date>2020-11-18T15:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: 'Stats count by' set to specific count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-count-by-set-to-specific-count/m-p/529965#M149713</link>
      <description>&lt;P&gt;There is no specific command for that, but there is a simple combination of commands.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=`email` action=blocked 
| stats count by user_ID
| where count &amp;gt; 1&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 18 Nov 2020 16:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-count-by-set-to-specific-count/m-p/529965#M149713</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-18T16:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: 'Stats count by' set to specific count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-count-by-set-to-specific-count/m-p/529966#M149714</link>
      <description>Small fix as &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228799"&gt;@bcjammer03&lt;/a&gt; asked "triggered twice" you should use "| where count = 2"</description>
      <pubDate>Wed, 18 Nov 2020 16:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-count-by-set-to-specific-count/m-p/529966#M149714</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-11-18T16:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: 'Stats count by' set to specific count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-count-by-set-to-specific-count/m-p/529968#M149715</link>
      <description>&lt;P&gt;yes! thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 16:46:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-count-by-set-to-specific-count/m-p/529968#M149715</guid>
      <dc:creator>bcjammer03</dc:creator>
      <dc:date>2020-11-18T16:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: 'Stats count by' set to specific count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-count-by-set-to-specific-count/m-p/529990#M149722</link>
      <description>&lt;P&gt;That is a more precise match to the requirements, but I presumed "thrice" is just as interesting as "twice".&lt;/P&gt;&lt;P&gt;If your problem is resolved, then please click the "Accept as Solution" button to help future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 18:46:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-count-by-set-to-specific-count/m-p/529990#M149722</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-18T18:46:32Z</dc:date>
    </item>
  </channel>
</rss>

