Getting Data In

How can I find AD accounts that haven't been used for a specified time period?

rodiers01
New Member

Query that can tell me non-disabled active directory accounts that have not been used in 12 or more weeks?

All in the title. I'm looking to run a query that can give me this data. Thanks all.

0 Karma

jkat54
SplunkTrust
SplunkTrust
 index=activedirectory | stats latest(login) as latest by user | where latest<now()-7776000 AND active=true

Assuming you have an index called activedirectory with events containing fields called user, login and active.

Of course you didn't say you have data like this, I just had to guess at what you've got 😉

0 Karma
Get Updates on the Splunk Community!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...