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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...