<?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 use stats to get sum of unique ids , lists of user  and Total count logged. in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-stats-to-get-sum-of-unique-ids-lists-of-user-and/m-p/544449#M37344</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232631"&gt;@shalinibisht&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;You can use &lt;STRONG&gt;eventstats&lt;/STRONG&gt; to get the total number of users.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Index=* eventName=* host IN(here is the list of the server) response.status=SUCCESSFUL | stats count by "userId" | sort  - count | eventstats count(userId) as "Total Number of Users"&lt;/LI-CODE&gt;&lt;P&gt;Tip: Always use index name(s) instead of * for the index query for better performance.&lt;BR /&gt;&lt;BR /&gt;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Mar 2021 07:32:22 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2021-03-19T07:32:22Z</dc:date>
    <item>
      <title>How to use stats to get sum of unique ids , lists of user  and Total count logged.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-stats-to-get-sum-of-unique-ids-lists-of-user-and/m-p/544444#M37342</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My filter here is , Which shows the list of unique users with the no of times es they have logged into the system/server as success response.&lt;/P&gt;&lt;P&gt;Index=* eventName=* host IN(here is the list of the server) response.status=SUCCESSFUL | stats count by “userId” | sort &amp;nbsp;- count&lt;/P&gt;&lt;P&gt;The result is attached screen shot.&lt;/P&gt;&lt;P&gt;My requirement is to get the data for total no of distinct users count to, I can fetch it by dc or distinct_count(userId) by how can I get all three data in the same page. The list of users, the sum of users and no of times they logged in as count.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="list.png" style="width: 887px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13384iEAFEEE822CF1F539/image-size/large?v=v2&amp;amp;px=999" role="button" title="list.png" alt="list.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 06:22:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-stats-to-get-sum-of-unique-ids-lists-of-user-and/m-p/544444#M37342</guid>
      <dc:creator>shalinibisht</dc:creator>
      <dc:date>2021-03-19T06:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use stats to get sum of unique ids , lists of user  and Total count logged.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-stats-to-get-sum-of-unique-ids-lists-of-user-and/m-p/544449#M37344</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232631"&gt;@shalinibisht&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;You can use &lt;STRONG&gt;eventstats&lt;/STRONG&gt; to get the total number of users.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Index=* eventName=* host IN(here is the list of the server) response.status=SUCCESSFUL | stats count by "userId" | sort  - count | eventstats count(userId) as "Total Number of Users"&lt;/LI-CODE&gt;&lt;P&gt;Tip: Always use index name(s) instead of * for the index query for better performance.&lt;BR /&gt;&lt;BR /&gt;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 07:32:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-stats-to-get-sum-of-unique-ids-lists-of-user-and/m-p/544449#M37344</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-03-19T07:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use stats to get sum of unique ids , lists of user  and Total count logged.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-stats-to-get-sum-of-unique-ids-lists-of-user-and/m-p/544456#M37345</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the resposne.&lt;/P&gt;&lt;P&gt;Eventstats is not working , its throwing an error argument invalid.&lt;/P&gt;&lt;P&gt;Yes I am using index=value(not to mention the name I made it asterik.)&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shalini Bisht&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 08:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-stats-to-get-sum-of-unique-ids-lists-of-user-and/m-p/544456#M37345</guid>
      <dc:creator>shalinibisht</dc:creator>
      <dc:date>2021-03-19T08:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use stats to get sum of unique ids , lists of user  and Total count logged.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-stats-to-get-sum-of-unique-ids-lists-of-user-and/m-p/544457#M37346</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Index=* eventName=* host IN(here is the list of the server) response.status=SUCCESSFUL | stats count by "userId" | sort  - count | eventstats count as "Total Number of Users"&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 19 Mar 2021 08:25:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-stats-to-get-sum-of-unique-ids-lists-of-user-and/m-p/544457#M37346</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-03-19T08:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use stats to get sum of unique ids , lists of user  and Total count logged.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-stats-to-get-sum-of-unique-ids-lists-of-user-and/m-p/544464#M37347</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks that worked!&lt;/P&gt;&lt;P&gt;I could the total count for userid, can the view be chnanged as it will show value multiple times&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="view.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13386i01774CC89479B479/image-size/large?v=v2&amp;amp;px=999" role="button" title="view.png" alt="view.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 09:15:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-stats-to-get-sum-of-unique-ids-lists-of-user-and/m-p/544464#M37347</guid>
      <dc:creator>shalinibisht</dc:creator>
      <dc:date>2021-03-19T09:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use stats to get sum of unique ids , lists of user  and Total count logged.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-stats-to-get-sum-of-unique-ids-lists-of-user-and/m-p/544489#M37349</link>
      <description>&lt;P&gt;you can use stats values but I would not suggest it since you have more than 1000 events.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Index=* eventName=* host IN(here is the list of the server) response.status=SUCCESSFUL | stats count by "userId" | sort  - count | eventstats count as "Total Number of Users" | stats values(*) as *&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If these replies help you, likes would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 11:55:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-stats-to-get-sum-of-unique-ids-lists-of-user-and/m-p/544489#M37349</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-03-19T11:55:05Z</dc:date>
    </item>
  </channel>
</rss>

