<?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: Inactive Users in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Inactive-Users/m-p/372005#M109454</link>
    <description>&lt;P&gt;@williamdicker - Did the answer provided by naidusadanala help provide a working solution to your question? If yes, please don't forget to resolve this post by clicking "Accept". If no, please leave a comment with more feedback. Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2017 02:57:31 GMT</pubDate>
    <dc:creator>aaraneta_splunk</dc:creator>
    <dc:date>2017-05-17T02:57:31Z</dc:date>
    <item>
      <title>Inactive Users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inactive-Users/m-p/372001#M109450</link>
      <description>&lt;P&gt;Hello Splunk, &lt;/P&gt;

&lt;P&gt;I am attempting to write a query that searches Splunk for any users that have not logged in for the past 60 days. This is a compliance requirement and all query's are not working. &lt;/P&gt;

&lt;P&gt;Our login sourcetype is sam:xml&lt;/P&gt;

&lt;P&gt;My latest search resulted in zero events: &lt;/P&gt;

&lt;P&gt;index=_internal source=*web_service.log action=login status=success | eval last_login_time=_time |  eval current_time=now() | eval time_since_last_login_secs=current_time-last_login_time | where time_since_last_login_secs &amp;gt; 2592000 | table user&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:00:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inactive-Users/m-p/372001#M109450</guid>
      <dc:creator>williamdicker</dc:creator>
      <dc:date>2020-09-29T14:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Inactive Users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inactive-Users/m-p/372002#M109451</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;index=_audit action="login attempt" info=succeeded |stats max(timestamp) as last_login_time by user | eval last_login_time = strptime('last_login_time', "%m-%d-%Y %H:%M:%S")&lt;BR /&gt;
 | eval current_time=now() | eval time_since_last_login_secs=current_time-last_login_time | where time_since_last_login_secs &amp;gt; 2592000 | table user&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:00:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inactive-Users/m-p/372002#M109451</guid>
      <dc:creator>naidusadanala</dc:creator>
      <dc:date>2020-09-29T14:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Inactive Users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inactive-Users/m-p/372003#M109452</link>
      <description>&lt;P&gt;very good here!&lt;BR /&gt;
for 60 days change 2592000 (this is 30 days) to 5184000&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 16:19:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inactive-Users/m-p/372003#M109452</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-05-10T16:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Inactive Users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inactive-Users/m-p/372004#M109453</link>
      <description>&lt;P&gt;You are right&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 16:28:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inactive-Users/m-p/372004#M109453</guid>
      <dc:creator>naidusadanala</dc:creator>
      <dc:date>2017-05-10T16:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Inactive Users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inactive-Users/m-p/372005#M109454</link>
      <description>&lt;P&gt;@williamdicker - Did the answer provided by naidusadanala help provide a working solution to your question? If yes, please don't forget to resolve this post by clicking "Accept". If no, please leave a comment with more feedback. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 02:57:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inactive-Users/m-p/372005#M109454</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-05-17T02:57:31Z</dc:date>
    </item>
  </channel>
</rss>

