Splunk Search

Query to find the latest time entry for lastlogonTimestamp from AD logs for a list of users?

LintuMathews
Explorer

Hi

Can you please help with a query that will pick the latest time entry captured for lastlogonTimestamp from AD logs for a particular list of users

Tags (2)
1 Solution

LintuMathews
Explorer

Thanks, I used this query and it works:

index=msad lastLogonTimestamp | stats latest(lastLogonTimestamp) by employeeID

View solution in original post

LintuMathews
Explorer

Thanks, I used this query and it works:

index=msad lastLogonTimestamp | stats latest(lastLogonTimestamp) by employeeID

jodros
Builder

You could probably leverage the dedup command and key in on user. This would only show the most recent event for that user. You could also leverage a lookup table file for all of the users you are interested in.

0 Karma
Get Updates on the Splunk Community!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...