<?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: find users who hasnt logged in the past 30 days in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/find-users-who-hasnt-logged-in-the-past-30-days/m-p/570102#M198709</link>
    <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup Users.csv
| eval last_login = strptime('last_login',"%m/%d/%Y %H:%M:%S")
| sort 0 last_login desc
| stats first(last_login) as last_login by user
| where last_login &amp;lt; relative_time(now(),"-30d@d")&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 07 Oct 2021 18:16:58 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-10-07T18:16:58Z</dc:date>
    <item>
      <title>find users who hasnt logged in the past 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-users-who-hasnt-logged-in-the-past-30-days/m-p/570094#M198706</link>
      <description>&lt;P&gt;Hello! I have a lookup table with fields 'name' and 'last_login'. I'm trying to find users who haven't logged in the past 30 days.&amp;nbsp;&lt;BR /&gt;Originally, I had this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup Users.csv
| where strptime('last_login',"%m/%d/%Y %H:%M:%S") &amp;lt; relative_time(now(),"-30d@d") OR isnull(last_login)
| sort last_login desc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it is only outputting users that logged in 30+ days ago. I would like to exclude users who are still logging in recently (in those 30 days). Thank you! Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 17:11:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-users-who-hasnt-logged-in-the-past-30-days/m-p/570094#M198706</guid>
      <dc:creator>iiix94</dc:creator>
      <dc:date>2021-10-07T17:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: find users who hasnt logged in the past 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-users-who-hasnt-logged-in-the-past-30-days/m-p/570095#M198707</link>
      <description>&lt;P&gt;What is the issue here - assuming your lookup is up to date, the search will do what you are asking for. Or is it that your lookup is not up to date and you want to check more recent events which are not in the lookup?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 17:21:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-users-who-hasnt-logged-in-the-past-30-days/m-p/570095#M198707</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-07T17:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: find users who hasnt logged in the past 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-users-who-hasnt-logged-in-the-past-30-days/m-p/570098#M198708</link>
      <description>&lt;P&gt;The lookup is updated with recent login events. This query pulled users who logged in 30 days ago, including users who are still logging in recently. I would like to exclude those users. I would like users whose last login was 30 days ago, so permissions can be removed!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 17:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-users-who-hasnt-logged-in-the-past-30-days/m-p/570098#M198708</guid>
      <dc:creator>iiix94</dc:creator>
      <dc:date>2021-10-07T17:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: find users who hasnt logged in the past 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-users-who-hasnt-logged-in-the-past-30-days/m-p/570102#M198709</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup Users.csv
| eval last_login = strptime('last_login',"%m/%d/%Y %H:%M:%S")
| sort 0 last_login desc
| stats first(last_login) as last_login by user
| where last_login &amp;lt; relative_time(now(),"-30d@d")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Oct 2021 18:16:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-users-who-hasnt-logged-in-the-past-30-days/m-p/570102#M198709</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-07T18:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: find users who hasnt logged in the past 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/find-users-who-hasnt-logged-in-the-past-30-days/m-p/570132#M198714</link>
      <description>&lt;P&gt;Hmm.. Not working..&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 19:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/find-users-who-hasnt-logged-in-the-past-30-days/m-p/570132#M198714</guid>
      <dc:creator>iiix94</dc:creator>
      <dc:date>2021-10-07T19:33:09Z</dc:date>
    </item>
  </channel>
</rss>

