Splunk Search

How do I edit my search to find if a user logged in to multiple machines within a certain time range, and identify each of these machines?

suvamondal
New Member

I want to know how to determine if a user logged on to multiple machines within a certain time window, and also identify the particular machines where the user logged in.

I have used the search below, but machine names are not appearing:

sourcetype="WinEventLog:Security" OR (EventCode=540 OR EventCode=4624) NOT (user=*$ OR user="ANONYMOUS LOGON" OR user=SYSTEM OR user=services OR user=Unknown) 
| stats dc(src_ip) as Number_logged_hosts, values(src_ip) as "Logins IPs", values(dvc) as "Domains Controller", count by user 
| rename user as Users, count as Total_time_logged_in 
0 Karma

kbarker302
Communicator

If you change "count by user" to "count by user, ComputerName", will this give you what you are looking for?

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...