Splunk Search

Count of computers user triggered event code to by count of events of that event code

Mckechnie
Engager

Hi All,

I am trying to find:

Users using event code 4769

The count of computers a user connects to within 1hr which is greater >4
The count of the event code 4769 >50 by that user within 1hr

I have got myself very confused any help would be appreciated! 

 

 

sourcetype = windowseventcodes Event_Code=4769
| bucket _time span=1h 
| stats count by ComputerName AccountName
| stats count(ComputerName) as CNC by AccountName 
| eventstats sum(CNC) as total_count

 

 

 

 

Labels (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
sourcetype = windowseventcodes Event_Code=4769
| bucket _time span=1h 
``` count events by computer name and account within 1hr bins ```
| stats count by ComputerName AccountName _time
``` count computers user has used and total events for user within 1hr bins ```
| stats count(ComputerName) as CNC sum(count) as total_count by AccountName _time
``` select the rows you want ```
| where CNC > 4 AND total_count > 50

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
sourcetype = windowseventcodes Event_Code=4769
| bucket _time span=1h 
``` count events by computer name and account within 1hr bins ```
| stats count by ComputerName AccountName _time
``` count computers user has used and total events for user within 1hr bins ```
| stats count(ComputerName) as CNC sum(count) as total_count by AccountName _time
``` select the rows you want ```
| where CNC > 4 AND total_count > 50
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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...