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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...