<?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 do I filter my search to only display users that have appeared a minimum of 5 times? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-display-users-that-have/m-p/230063#M68190</link>
    <description>&lt;P&gt;I was able to get the first query to work if I replaced 'search' instead of 'where'. I think using 'where' was really my problem, and now it works much better with 'search'. Thanks so much for the tip, I'm hanging onto your first query above. &lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2016 16:38:15 GMT</pubDate>
    <dc:creator>bspier1</dc:creator>
    <dc:date>2016-01-12T16:38:15Z</dc:date>
    <item>
      <title>How do I filter my search to only display users that have appeared a minimum of 5 times?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-display-users-that-have/m-p/230058#M68185</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;

&lt;P&gt;I have a field that identifies users, e.g. &lt;STRONG&gt;userID&lt;/STRONG&gt;. I also have a field that is common in every log, e.g. &lt;STRONG&gt;command&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;How can I create a timechart that doesn't return all users, rather, just users who have appeared a minimum of five times?&lt;/P&gt;

&lt;P&gt;I tried the following search, but it didn't return any results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;stats count(command) as Uses by userID | Where Uses&amp;gt;5 | timechart span=1d dc(userID)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 14:53:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-display-users-that-have/m-p/230058#M68185</guid>
      <dc:creator>bspier1</dc:creator>
      <dc:date>2016-01-12T14:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter my search to only display users that have appeared a minimum of 5 times?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-display-users-that-have/m-p/230059#M68186</link>
      <description>&lt;P&gt;Time chart needs a time field in order to work.&lt;BR /&gt;
Try the following instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| yoursearch
| bucket span=1d _time
| stats count(command) as Uses by userID, _time
| Where Uses&amp;gt;5 
| timechart span=1d dc(userID)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| yoursearch
| timechart span=1d count by userID
| Where count &amp;gt; 5 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jan 2016 15:58:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-display-users-that-have/m-p/230059#M68186</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-01-12T15:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter my search to only display users that have appeared a minimum of 5 times?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-display-users-that-have/m-p/230060#M68187</link>
      <description>&lt;P&gt;I couldn't get either query to work. &lt;/P&gt;

&lt;P&gt;I think the Where clause is the problem in both queries. I notice that 'where' is supposed to only be used when relating two fields. Maybe that's a problem with using where?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:24:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-display-users-that-have/m-p/230060#M68187</guid>
      <dc:creator>bspier1</dc:creator>
      <dc:date>2016-01-12T16:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter my search to only display users that have appeared a minimum of 5 times?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-display-users-that-have/m-p/230061#M68188</link>
      <description>&lt;P&gt;You can use both "search count &amp;gt; 5" or "where count &amp;gt; 5"&lt;BR /&gt;
Try search instead but both should work just fine.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:29:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-display-users-that-have/m-p/230061#M68188</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-01-12T16:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter my search to only display users that have appeared a minimum of 5 times?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-display-users-that-have/m-p/230062#M68189</link>
      <description>&lt;P&gt;If none work, can you paste your whole query here?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:30:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-display-users-that-have/m-p/230062#M68189</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-01-12T16:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter my search to only display users that have appeared a minimum of 5 times?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-display-users-that-have/m-p/230063#M68190</link>
      <description>&lt;P&gt;I was able to get the first query to work if I replaced 'search' instead of 'where'. I think using 'where' was really my problem, and now it works much better with 'search'. Thanks so much for the tip, I'm hanging onto your first query above. &lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:38:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-display-users-that-have/m-p/230063#M68190</guid>
      <dc:creator>bspier1</dc:creator>
      <dc:date>2016-01-12T16:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter my search to only display users that have appeared a minimum of 5 times?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-display-users-that-have/m-p/230064#M68191</link>
      <description>&lt;P&gt;Hi @bspier1&lt;/P&gt;

&lt;P&gt;I'm glad you were able to find a solution through @javiergn &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Please don't forget to resolve your questions by clicking "Accept" directly below the answer. This will help make it easier for other users finding an answer to the same/similar question. Thanks!&lt;/P&gt;

&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 19:15:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-my-search-to-only-display-users-that-have/m-p/230064#M68191</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2016-01-12T19:15:55Z</dc:date>
    </item>
  </channel>
</rss>

