<?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 of user logon count using lookup table to return all users in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-of-user-logon-count-using-lookup-table-to-return-all/m-p/131978#M35992</link>
    <description>&lt;P&gt;Thanks a bunch.  The only change I had to make to your command was to add a "| rename count(luser) as count"&lt;/P&gt;

&lt;P&gt;full command&lt;/P&gt;

&lt;P&gt;|inputlookup allusers.csv | table luser| eval count=0 | join type=left luser  [search source="mysource" "login succeeded" | eval luser=lower(user) | stats count(luser) as count by luser | rename count(luser) as count]&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2014 18:39:07 GMT</pubDate>
    <dc:creator>lindsley</dc:creator>
    <dc:date>2014-01-30T18:39:07Z</dc:date>
    <item>
      <title>search of user logon count using lookup table to return all users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-of-user-logon-count-using-lookup-table-to-return-all/m-p/131976#M35990</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a search like this to return the number of times users have logged in over a week.&lt;/P&gt;

&lt;P&gt;source="mysource" "login succeeded" | eval luser=lower(user)   | stats count(luser) by luser&lt;/P&gt;

&lt;P&gt;I also have a lookup table with all users who have access to the system&lt;/P&gt;

&lt;P&gt;Is there a way I could make my stats to put out a 0 count for users who are in the lookup table but haven't logged in?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2014 17:29:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-of-user-logon-count-using-lookup-table-to-return-all/m-p/131976#M35990</guid>
      <dc:creator>lindsley</dc:creator>
      <dc:date>2014-01-30T17:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: search of user logon count using lookup table to return all users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-of-user-logon-count-using-lookup-table-to-return-all/m-p/131977#M35991</link>
      <description>&lt;P&gt;Assuming name of the lookup file is allusers.csv and field name in the lookup is luser, try following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup allusers.csv | table luser| eval count=0 | join type=left luser  [search source="mysource" "login succeeded" | eval luser=lower(user) | stats count(luser) as count by luser]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jan 2014 18:01:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-of-user-logon-count-using-lookup-table-to-return-all/m-p/131977#M35991</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-01-30T18:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: search of user logon count using lookup table to return all users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-of-user-logon-count-using-lookup-table-to-return-all/m-p/131978#M35992</link>
      <description>&lt;P&gt;Thanks a bunch.  The only change I had to make to your command was to add a "| rename count(luser) as count"&lt;/P&gt;

&lt;P&gt;full command&lt;/P&gt;

&lt;P&gt;|inputlookup allusers.csv | table luser| eval count=0 | join type=left luser  [search source="mysource" "login succeeded" | eval luser=lower(user) | stats count(luser) as count by luser | rename count(luser) as count]&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2014 18:39:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-of-user-logon-count-using-lookup-table-to-return-all/m-p/131978#M35992</guid>
      <dc:creator>lindsley</dc:creator>
      <dc:date>2014-01-30T18:39:07Z</dc:date>
    </item>
  </channel>
</rss>

