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!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...