Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Search Wineventlog to find latest login by users and then search for any > 14 days ago

$
0
0
Background: as part of our account management auditing, I'd like to schedule a weekly report that shows me user accounts that haven't logged in in over 14 days. I currently have this search: index=wineventlog EventCode=4624 user="*-c" | fields user EventCode index src_dns | table _time user host src_dns | stats max(_time) as last by src_dns user | stats max(last) as "Last Login" last(src_dns) as "Source Workstation" by user | convert ctime("Last Login") | sort "Last Login" | rename user as User This search displays users by their latest login, but how can I filter it further to show those whose latest login was over 14 days ago? Thanks!

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>