<?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 for Users that have not Logged-in in the Last 30 Days in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-for-Users-that-have-not-Logged-in-in-the-Last-30-Days/m-p/141904#M39325</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=webserver audit_event=AUTHN_SUCCESS tag=prod | eval username=lower(username) | dedup username | table _time username | eval age_days=(now()-_time)/(60*60*24) | where age_days &amp;gt; 30
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Apr 2014 16:16:04 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-04-24T16:16:04Z</dc:date>
    <item>
      <title>Search for Users that have not Logged-in in the Last 30 Days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-Users-that-have-not-Logged-in-in-the-Last-30-Days/m-p/141903#M39324</link>
      <description>&lt;P&gt;I need to create a search that will look back over the last year and list all users that have not logged into a webserver.  I was thinking about running a search that normalized, deduped, and listed all users in a table.  Then I wanted to run a search against the table for all users with timestamps older than 30 days.  I have the first part working, but not the search against the table.  Any help would be appreciated.  &lt;/P&gt;

&lt;P&gt;sourcetype=webserver audit_event=AUTHN_SUCCESS tag=prod | eval username=lower(username)  | dedup username  | table  _time username | search _time&amp;gt;-30d&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:27:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-Users-that-have-not-Logged-in-in-the-Last-30-Days/m-p/141903#M39324</guid>
      <dc:creator>jodros</dc:creator>
      <dc:date>2020-09-28T16:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Search for Users that have not Logged-in in the Last 30 Days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-Users-that-have-not-Logged-in-in-the-Last-30-Days/m-p/141904#M39325</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=webserver audit_event=AUTHN_SUCCESS tag=prod | eval username=lower(username) | dedup username | table _time username | eval age_days=(now()-_time)/(60*60*24) | where age_days &amp;gt; 30
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Apr 2014 16:16:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-Users-that-have-not-Logged-in-in-the-Last-30-Days/m-p/141904#M39325</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-24T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search for Users that have not Logged-in in the Last 30 Days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-Users-that-have-not-Logged-in-in-the-Last-30-Days/m-p/141905#M39326</link>
      <description>&lt;P&gt;Thanks!  This worked for me.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 18:25:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-Users-that-have-not-Logged-in-in-the-Last-30-Days/m-p/141905#M39326</guid>
      <dc:creator>jodros</dc:creator>
      <dc:date>2014-04-28T18:25:54Z</dc:date>
    </item>
  </channel>
</rss>

