<?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 can I count only users who exceeded a specific number of visits to web pages? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327127#M163340</link>
    <description>&lt;P&gt;thank you for your help, i am running this new query now, but am queued up so it is taking a bit longer than usual.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2018 16:26:20 GMT</pubDate>
    <dc:creator>rickettw</dc:creator>
    <dc:date>2018-01-25T16:26:20Z</dc:date>
    <item>
      <title>How can I count only users who exceeded a specific number of visits to web pages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327122#M163335</link>
      <description>&lt;P&gt;I want to find users who visited more than 1,000 urls in a month and the field name is &lt;CODE&gt;cs_uri&lt;/CODE&gt;. &lt;BR /&gt;
I tried this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype= my sourcetype, index=my index, user=******| table date_month date time  user category cs_uri  | where cs_uri &amp;gt; 1,000.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want a list of users only when the count is &lt;CODE&gt;GT 1,000&lt;/CODE&gt; for my date range. I do not get any results when I use the where command but I do when I take it off.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 15:36:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327122#M163335</guid>
      <dc:creator>rickettw</dc:creator>
      <dc:date>2018-01-25T15:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I count only users who exceeded a specific number of visits to web pages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327123#M163336</link>
      <description>&lt;P&gt;Did you try removing the comma from 1,000?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 15:42:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327123#M163336</guid>
      <dc:creator>rmsit</dc:creator>
      <dc:date>2018-01-25T15:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I count only users who exceeded a specific number of visits to web pages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327124#M163337</link>
      <description>&lt;P&gt;You'll first need to count the URLs visited by a user before you can filter for count greater than 1000.&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my index, user=**
| stats count by user
| search count&amp;gt;1000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jan 2018 15:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327124#M163337</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-01-25T15:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I count only users who exceeded a specific number of visits to web pages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327125#M163338</link>
      <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;P&gt;sourcetype= my sourcetype index=my index user=* | stats count | where cs_uri&amp;gt;1000 | table date_month date time user category cs_uri &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:50:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327125#M163338</guid>
      <dc:creator>rmsit</dc:creator>
      <dc:date>2020-09-29T17:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I count only users who exceeded a specific number of visits to web pages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327126#M163339</link>
      <description>&lt;P&gt;thanks, i did eliminate the , and am running the report now.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 16:24:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327126#M163339</guid>
      <dc:creator>rickettw</dc:creator>
      <dc:date>2018-01-25T16:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I count only users who exceeded a specific number of visits to web pages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327127#M163340</link>
      <description>&lt;P&gt;thank you for your help, i am running this new query now, but am queued up so it is taking a bit longer than usual.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 16:26:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327127#M163340</guid>
      <dc:creator>rickettw</dc:creator>
      <dc:date>2018-01-25T16:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I count only users who exceeded a specific number of visits to web pages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327128#M163341</link>
      <description>&lt;P&gt;If you want to get the total number or URLs visited by each user for current month and then display details only for users who exceeded 1000 visits to URLs in total you can use &lt;CODE&gt;eventstats&lt;/CODE&gt; command. (PS: If you need unique URLs visited to be &amp;gt; 1000, you would need to use &lt;CODE&gt;dc()&lt;/CODE&gt; instead of &lt;CODE&gt;count()&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt; earliest=@mon latest=now
| eventstats count(cs_uri) as TotalURLsVisited by user
| search TotalURLsVisited &amp;gt; 1000
| table date_month _time user category cs_uri
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is a run anywhere example from Splunk's _internal index for sourcetype=splunkd_access&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype="splunkd_access" earliest=@mon latest=now
| eventstats count(uri) as TotalURLsVisited by user
| search TotalURLsVisited&amp;gt;1000
| table date_month _time user method status uri
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:50:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327128#M163341</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T17:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I count only users who exceeded a specific number of visits to web pages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327129#M163342</link>
      <description>&lt;P&gt;@rickettw, @FrankVl, use of &lt;CODE&gt;stats&lt;/CODE&gt; will retain only two fields after second pipe i.e. &lt;CODE&gt;count&lt;/CODE&gt; and &lt;CODE&gt;user&lt;/CODE&gt;. Which implies final table will not display required table for other fields.&lt;/P&gt;

&lt;P&gt;Refer to my answer below as this is a usecase for &lt;CODE&gt;eventstats&lt;/CODE&gt; if you want to display the entire table after stats. Also either &lt;CODE&gt;count(cs_uri) as TotalURLsVisited&lt;/CODE&gt; or &lt;CODE&gt;dc(cs_uri) as UniqueURLsVisited&lt;/CODE&gt; should be used as per the use case.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 16:52:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327129#M163342</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-01-25T16:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I count only users who exceeded a specific number of visits to web pages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327130#M163343</link>
      <description>&lt;P&gt;Fair point, I had them the other way around originally, then thought to optimize things a bit, but clearly didn't fully think that through &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Let me adjust that.&lt;/P&gt;

&lt;P&gt;Question spoke about "a list of users" which my solution would give. If you indeed want to just filter the original data for those entries that relate to users that have over 1000 entries, then eventstats is indeed the way to go.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 16:56:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327130#M163343</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-01-25T16:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I count only users who exceeded a specific number of visits to web pages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327131#M163344</link>
      <description>&lt;P&gt;One issue I am having is my search is with an enterprise that has over 400000 users so I am only running it for Last 7 Days, to gain an idea who is spending time on the internet rather than their normal duties. The results i am getting just like the events and are not downloadable, in other words I am just getting events not statistics even with the table command. I will try the eventstats command, but am not sure where it goes: does this look correct? sourcetype="&lt;STRONG&gt;&lt;EM&gt;access:file", index="&lt;/EM&gt;&lt;/STRONG&gt;proxytraffic" earliest=@mon latest=now | eventstats count(uri) as TotalURLsVisited by user | search TotalURLsVisited&amp;gt;10000| table date_month _time user method status uri&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 18:14:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-only-users-who-exceeded-a-specific-number-of/m-p/327131#M163344</guid>
      <dc:creator>rickettw</dc:creator>
      <dc:date>2018-01-25T18:14:00Z</dc:date>
    </item>
  </channel>
</rss>

