<?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: Search for unique count of users in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-for-unique-count-of-users/m-p/18467#M2692</link>
    <description>&lt;P&gt;Works like a charm!&lt;/P&gt;</description>
    <pubDate>Wed, 31 Oct 2012 16:05:38 GMT</pubDate>
    <dc:creator>bnitesh</dc:creator>
    <dc:date>2012-10-31T16:05:38Z</dc:date>
    <item>
      <title>Search for unique count of users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-unique-count-of-users/m-p/18463#M2688</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a Splunk query which lets me view the frequency of visits to pages in my app.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="iis" source="*Prod*" cs_uri_filepath="Web/View*" cs_username!="-" | rex Field=cs_uri_filepath "web/view/(?&amp;lt;TabOrFormName&amp;gt;[_A-Za-z]*)" | stats count by TabOrFormName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now I also want to get numbers for all &lt;STRONG&gt;unique&lt;/STRONG&gt; users visiting these urls. Any ideas on how I can do this?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 15:17:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-unique-count-of-users/m-p/18463#M2688</guid>
      <dc:creator>bnitesh</dc:creator>
      <dc:date>2012-10-31T15:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Search for unique count of users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-unique-count-of-users/m-p/18464#M2689</link>
      <description>&lt;P&gt;Well how would you distinguish unique users based on your log contents?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 15:30:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-unique-count-of-users/m-p/18464#M2689</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-10-31T15:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Search for unique count of users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-unique-count-of-users/m-p/18465#M2690</link>
      <description>&lt;P&gt;cs_username stores the usernames. So I was thinking of using count over cs_username for each row of the final search or something like that.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:43:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-unique-count-of-users/m-p/18465#M2690</guid>
      <dc:creator>bnitesh</dc:creator>
      <dc:date>2020-09-28T12:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search for unique count of users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-unique-count-of-users/m-p/18466#M2691</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | stats dc(cs_username) by TabOrFormName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Oct 2012 16:02:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-unique-count-of-users/m-p/18466#M2691</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-10-31T16:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Search for unique count of users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-unique-count-of-users/m-p/18467#M2692</link>
      <description>&lt;P&gt;Works like a charm!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 16:05:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-unique-count-of-users/m-p/18467#M2692</guid>
      <dc:creator>bnitesh</dc:creator>
      <dc:date>2012-10-31T16:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Search for unique count of users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-unique-count-of-users/m-p/18468#M2693</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="iis" source="*Prod*" cs_uri_filepath="Web/View*" cs_username!="-" | rex Field=cs_uri_filepath "web/view/(?&amp;lt;TabOrFormName&amp;gt;[_A-Za-z]*)" | stats count as visits by TabOrFormName | append [ search sourcetype="iis" source="*Prod*" cs_uri_filepath="Web/View*" cs_username!="-" | rex Field=cs_uri_filepath "web/view/(?&amp;lt;TabOrFormName&amp;gt;[_A-Za-z]*)" | stats dc(cs_username) as DistinctCountofUsers by TabOrFormName] | table TabOrFormName visits DistinctCountofUsers
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Oct 2012 16:10:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-unique-count-of-users/m-p/18468#M2693</guid>
      <dc:creator>RicoSuave</dc:creator>
      <dc:date>2012-10-31T16:10:37Z</dc:date>
    </item>
  </channel>
</rss>

