<?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: Count of users in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Count-of-users/m-p/296137#M162879</link>
    <description>&lt;P&gt;I converted it to an answer. But as I was doing so, I realized that I didn't really solve your issue, so feel free to post your own answer with an explanation of what you were doing, how you troubleshot it, and what the solution was - and then accept that. If you're up for that, it might help someone in the future. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2018 20:41:31 GMT</pubDate>
    <dc:creator>elliotproebstel</dc:creator>
    <dc:date>2018-02-15T20:41:31Z</dc:date>
    <item>
      <title>Count of users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-users/m-p/296132#M162874</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We have some events in which two fields appname and UserID are listed. Which shows in each event that which user was trying to hit that application. UserID is a numeric field. &lt;/P&gt;

&lt;P&gt;Now my requirement is to get a dashboard which shows in last one hour how many users were accessing the apps . Basically count of users by application. i did like this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats dc(UserId) by appName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I dont get any stat values in the results.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 20:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-users/m-p/296132#M162874</guid>
      <dc:creator>macadminrohit</dc:creator>
      <dc:date>2018-02-15T20:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count of users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-users/m-p/296133#M162875</link>
      <description>&lt;P&gt;Is it perhaps as minor as capitalization?  In your text you said it was &lt;CODE&gt;UserID&lt;/CODE&gt;, but in your search you used &lt;CODE&gt;UserId&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats dc(UserID) by appName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Feb 2018 20:13:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-users/m-p/296133#M162875</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-15T20:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Count of users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-users/m-p/296134#M162876</link>
      <description>&lt;P&gt;I notice that your description mentions a field called &lt;CODE&gt;appname&lt;/CODE&gt;, and your search query uses &lt;CODE&gt;appName&lt;/CODE&gt;. Is that just a typo in your post? Splunk is case-sensitive in handling field names, so that discrepancy could be the cause.&lt;/P&gt;

&lt;P&gt;If not, can you share any errors you're getting? Or post a sample of the data returned by your search at the stage immediately before the stats call you posted? And last question - in your dashboard, what type of panel are you trying to use to display the data: an events table, a stats table, a single?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 20:15:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-users/m-p/296134#M162876</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-02-15T20:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count of users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-users/m-p/296135#M162877</link>
      <description>&lt;P&gt;Thanks, i messed up with the JSON parsing. These are nested fields and i was trying to access them directly.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 20:38:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-users/m-p/296135#M162877</guid>
      <dc:creator>macadminrohit</dc:creator>
      <dc:date>2018-02-15T20:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count of users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-users/m-p/296136#M162878</link>
      <description>&lt;P&gt;Not sure how to convert your comment to answer. I want to accept it as the answer.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 20:39:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-users/m-p/296136#M162878</guid>
      <dc:creator>macadminrohit</dc:creator>
      <dc:date>2018-02-15T20:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count of users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-users/m-p/296137#M162879</link>
      <description>&lt;P&gt;I converted it to an answer. But as I was doing so, I realized that I didn't really solve your issue, so feel free to post your own answer with an explanation of what you were doing, how you troubleshot it, and what the solution was - and then accept that. If you're up for that, it might help someone in the future. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 20:41:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-users/m-p/296137#M162879</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-02-15T20:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count of users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-users/m-p/296138#M162880</link>
      <description>&lt;P&gt;Simple fix was to access the field name through nested parsing, i was using appName instead of hdr.appName&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 22:45:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-users/m-p/296138#M162880</guid>
      <dc:creator>macadminrohit</dc:creator>
      <dc:date>2018-02-15T22:45:58Z</dc:date>
    </item>
  </channel>
</rss>

