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!

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 ...