<?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 Search for inactive Splunk users in Security</title>
    <link>https://community.splunk.com/t5/Security/Search-for-inactive-Splunk-users/m-p/9859#M24</link>
    <description>&lt;P&gt;Is there a search for finding Splunk instance users who have not logged in for X amount of time eg. not logged in for the last 6 months? audit.log contains information on users last login attempt that succeeded.   Would a look up setup be the approach?&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2010 07:21:55 GMT</pubDate>
    <dc:creator>Ellen</dc:creator>
    <dc:date>2010-02-23T07:21:55Z</dc:date>
    <item>
      <title>Search for inactive Splunk users</title>
      <link>https://community.splunk.com/t5/Security/Search-for-inactive-Splunk-users/m-p/9859#M24</link>
      <description>&lt;P&gt;Is there a search for finding Splunk instance users who have not logged in for X amount of time eg. not logged in for the last 6 months? audit.log contains information on users last login attempt that succeeded.   Would a look up setup be the approach?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2010 07:21:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Search-for-inactive-Splunk-users/m-p/9859#M24</guid>
      <dc:creator>Ellen</dc:creator>
      <dc:date>2010-02-23T07:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Search for inactive Splunk users</title>
      <link>https://community.splunk.com/t5/Security/Search-for-inactive-Splunk-users/m-p/9860#M25</link>
      <description>&lt;P&gt;You've pretty much answered your own question.  Search for &lt;CODE&gt;source=audit.log endmonthsago=6&lt;/CODE&gt;, and then &lt;CODE&gt;| DEDUP user&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Splunk makes it easy!&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;CODE&gt;8)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2010 10:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Search-for-inactive-Splunk-users/m-p/9860#M25</guid>
      <dc:creator>V_at_Splunk</dc:creator>
      <dc:date>2010-02-23T10:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Search for inactive Splunk users</title>
      <link>https://community.splunk.com/t5/Security/Search-for-inactive-Splunk-users/m-p/9861#M26</link>
      <description>&lt;P&gt;Obviously it's easy to find who &lt;EM&gt;has&lt;/EM&gt; logged in within some past period of time. To find the complement of this, you have to know the full set, i.e., you need a list of all possible users who might have logged in. You can get this either from some canonical external source, or you could generate it by running over an even longer period:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | inputlookup allusers | search NOT [ index=_audit action="login attempt" info="succeeded" earliest=-6mon | dedup user | fields user ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=_audit action="login attempt" info="succeeded" earliest=-18mon latest=-6mon NOT [ index=_audit action="login attempt" info="succeeded" earliest=-6mon | dedup user | fields user ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could also generate the lookup on an ongoing basis with a scheduled search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=_audit action="login attempt" info="succeeded" | dedup user | fields user | inputlookup append=t allusers | dedup user | outputlookup allusers
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You would run this once over the long past to generate the initial table, then run it every (say) 24 hours over the past 24 hours to keep it up-to-date.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2010 12:30:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Search-for-inactive-Splunk-users/m-p/9861#M26</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-02-23T12:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Search for inactive Splunk users</title>
      <link>https://community.splunk.com/t5/Security/Search-for-inactive-Splunk-users/m-p/9862#M27</link>
      <description>&lt;P&gt;And anonymous downvoters make one loath to answer questions.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2012 06:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Search-for-inactive-Splunk-users/m-p/9862#M27</guid>
      <dc:creator>V_at_Splunk</dc:creator>
      <dc:date>2012-10-05T06:08:30Z</dc:date>
    </item>
  </channel>
</rss>

