<?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 find out the no of users who didn't logged in some X application. and its percentage.???? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-the-no-of-users-who-didn-t-logged-in-some-X/m-p/152279#M185564</link>
    <description>&lt;P&gt;Thanks for your response , Its worked. I appreciate. &lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2015 06:29:30 GMT</pubDate>
    <dc:creator>moiezuddin</dc:creator>
    <dc:date>2015-03-02T06:29:30Z</dc:date>
    <item>
      <title>How to find out the no of users who didn't logged in some X application. and its percentage.????</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-the-no-of-users-who-didn-t-logged-in-some-X/m-p/152276#M185561</link>
      <description>&lt;P&gt;How to find out the no of users who didn't logged in some X application. and its percentage.????  &lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2015 09:46:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-the-no-of-users-who-didn-t-logged-in-some-X/m-p/152276#M185561</guid>
      <dc:creator>moiezuddin</dc:creator>
      <dc:date>2015-02-27T09:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to find out the no of users who didn't logged in some X application. and its percentage.????</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-the-no-of-users-who-didn-t-logged-in-some-X/m-p/152277#M185562</link>
      <description>&lt;P&gt;Which application, Splunk application or custom application? If later, does your splunk has logon data indexed from that application? &lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2015 23:16:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-the-no-of-users-who-didn-t-logged-in-some-X/m-p/152277#M185562</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-02-27T23:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to find out the no of users who didn't logged in some X application. and its percentage.????</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-the-no-of-users-who-didn-t-logged-in-some-X/m-p/152278#M185563</link>
      <description>&lt;P&gt;Questions that ask "who did NOT login" or "which forwarder is NOT sending data" are always harder in Splunk. You can search the data in Splunk, but generally the data is what DID happen.  So if I get a list of users from Splunk who logged in (probably easy) - how does Splunk know what is MISSING?&lt;/P&gt;

&lt;P&gt;Somehow, you need to give Splunk a list of things (users, hosts, return codes or whatever) that SHOULD be there. Sometimes, the easiest way to do this is with a lookup. Imagine that you have created a user lookup table. (Lookup tutorial is &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchTutorial/Usefieldlookups"&gt;here&lt;/A&gt;.)&lt;/P&gt;

&lt;P&gt;The csv file could look like this, or it could be more complicated:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;user
lguinn
somesoni2
moiezudden
jdoe
etc...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the lookup is named user_lookup and the field in your Splunk data is called &lt;CODE&gt;user&lt;/CODE&gt; too, you can do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup user_lookup
| join type=outer user [ search &amp;lt;yoursearchhereforlogins&amp;gt; 
       | stats count by user ]
| fillnull
| where count = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should give you a list of folks who have not logged in during your search interval.&lt;/P&gt;

&lt;P&gt;I am not sure how you want to count the percentage. If what you want to know is "what percent of users have not logged in?" you can do the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup user_lookup
| join type=outer user [ search &amp;lt;yoursearchhereforlogins&amp;gt; 
      | stats count as LoginCount by user ]
| fillnull
| eventstats count as TotalUsers count(eval(LoginCount=0)) as NeverLoggedIn 
| eval PercentNotLoggedIn = round(NeverLoggedIn*100/TotalUsers,1)
| where LoginCount = 0
| stats first(PercentNotLoggedIn) as "Percent Never Logged In" 
        values(user) as "User Names"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Feb 2015 20:04:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-the-no-of-users-who-didn-t-logged-in-some-X/m-p/152278#M185563</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-02-28T20:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to find out the no of users who didn't logged in some X application. and its percentage.????</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-the-no-of-users-who-didn-t-logged-in-some-X/m-p/152279#M185564</link>
      <description>&lt;P&gt;Thanks for your response , Its worked. I appreciate. &lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2015 06:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-out-the-no-of-users-who-didn-t-logged-in-some-X/m-p/152279#M185564</guid>
      <dc:creator>moiezuddin</dc:creator>
      <dc:date>2015-03-02T06:29:30Z</dc:date>
    </item>
  </channel>
</rss>

