<?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 How to count number of applications associated with a given user and report if less than 10? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-number-of-applications-associated-with-a-given-user/m-p/613129#M213085</link>
    <description>&lt;P&gt;I'm working on a search that evaluates events for a specific index/sourcetype combination; the events reflect SSO information regarding user authentication success as well as applications the user has accessed while logged on. The search is a result of an ask to identify how many users have accessed 10 or fewer apps during their logon session.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the user, I'm using a field called "sm_user_dn"; for the app name, I'm using "sm_agentname". My search looks like this currently:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=foo sourcetype=bar | table sm_user_dn, sm_agentname&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is pretty basic, and shows me all the user name/app combinations that have been reported in the events.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At this point, how do I tally up the number of apps per user and only show the users which have nine or fewer apps associated with them?&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2022 17:21:08 GMT</pubDate>
    <dc:creator>beetlegeuse</dc:creator>
    <dc:date>2022-09-14T17:21:08Z</dc:date>
    <item>
      <title>How to count number of applications associated with a given user and report if less than 10?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-number-of-applications-associated-with-a-given-user/m-p/613129#M213085</link>
      <description>&lt;P&gt;I'm working on a search that evaluates events for a specific index/sourcetype combination; the events reflect SSO information regarding user authentication success as well as applications the user has accessed while logged on. The search is a result of an ask to identify how many users have accessed 10 or fewer apps during their logon session.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the user, I'm using a field called "sm_user_dn"; for the app name, I'm using "sm_agentname". My search looks like this currently:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=foo sourcetype=bar | table sm_user_dn, sm_agentname&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is pretty basic, and shows me all the user name/app combinations that have been reported in the events.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At this point, how do I tally up the number of apps per user and only show the users which have nine or fewer apps associated with them?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 17:21:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-number-of-applications-associated-with-a-given-user/m-p/613129#M213085</guid>
      <dc:creator>beetlegeuse</dc:creator>
      <dc:date>2022-09-14T17:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to count number of applications associated with a given user and report if less than 10?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-number-of-applications-associated-with-a-given-user/m-p/613131#M213086</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;you can try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo sourcetype=bar 
| stats dc(sm_agentname) as appsCount by sm_user_dn
| where appsCount &amp;lt; 10&lt;/LI-CODE&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 17:34:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-number-of-applications-associated-with-a-given-user/m-p/613131#M213086</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-09-14T17:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to count number of applications associated with a given user and report if less than 10?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-number-of-applications-associated-with-a-given-user/m-p/613133#M213087</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;! One additional ask: What would be added to count the number of users that meet the "less than 10" criteria? Does the number returned in the "Statistics" tab header reflect that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 17:58:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-number-of-applications-associated-with-a-given-user/m-p/613133#M213087</guid>
      <dc:creator>beetlegeuse</dc:creator>
      <dc:date>2022-09-14T17:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to count number of applications associated with a given user and report if less than 10?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-number-of-applications-associated-with-a-given-user/m-p/613593#M213255</link>
      <description>&lt;P&gt;Thank you...this did the trick!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 12:06:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-number-of-applications-associated-with-a-given-user/m-p/613593#M213255</guid>
      <dc:creator>beetlegeuse</dc:creator>
      <dc:date>2022-09-19T12:06:44Z</dc:date>
    </item>
  </channel>
</rss>

